diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2020-12-29 13:19:16 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2020-12-29 13:19:16 +0000 |
commit | 2639322e0fb39bdd4b1d830eed1b5a052c29d89c (patch) | |
tree | 267cce085874a1ee31bea9881e4e4f9a38a75c59 /finance | |
parent | java/aparapi: enable on powerpc64 (diff) |
finance/ktoblzcheck: Update to 1.53
- The build system has been changed to CMake.
- Upstream has removed the bankdata updating tool. Bankdata will now be
periodically updated by the port itself.
- The PYTHON option has been removed. The Python bindings are now compatible
with Python 3.x, but would be better off in a slave port. For now, they
are disabled since nothing in the ports tree uses them. [1]
PR: 249684 [1]
Reported by: swills [1]
Notes
Notes:
svn path=/head/; revision=559580
Diffstat (limited to 'finance')
-rw-r--r-- | finance/ktoblzcheck/Makefile | 36 | ||||
-rw-r--r-- | finance/ktoblzcheck/distinfo | 8 | ||||
-rw-r--r-- | finance/ktoblzcheck/files/patch-src_CMakeLists.txt | 12 | ||||
-rw-r--r-- | finance/ktoblzcheck/files/patch-src_bankdata_online__update.pl.in | 44 | ||||
-rw-r--r-- | finance/ktoblzcheck/files/pkg-deinstall.in | 14 | ||||
-rw-r--r-- | finance/ktoblzcheck/files/pkg-message.in | 17 | ||||
-rw-r--r-- | finance/ktoblzcheck/pkg-plist | 72 |
7 files changed, 104 insertions, 99 deletions
diff --git a/finance/ktoblzcheck/Makefile b/finance/ktoblzcheck/Makefile index 655a20de85ab..f8cd9b7aa4d3 100644 --- a/finance/ktoblzcheck/Makefile +++ b/finance/ktoblzcheck/Makefile @@ -2,10 +2,12 @@ # $FreeBSD$ PORTNAME= ktoblzcheck -PORTVERSION= 1.49 -PORTREVISION= 2 +PORTVERSION= 1.53 CATEGORIES= finance german -MASTER_SITES= SF/${PORTNAME} +MASTER_SITES= SF/${PORTNAME} \ + LOCAL/jhale:bankdata +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + ${PORTNAME}-bankdata-${BANKDATA_DATE}${EXTRACT_SUFX}:bankdata MAINTAINER= jhale@FreeBSD.org COMMENT= Check bank codes of German banks @@ -13,25 +15,31 @@ COMMENT= Check bank codes of German banks LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= libtool pathfix perl5 -GNU_CONFIGURE= yes +USES= cmake pathfix python:3.6+,build USE_LDCONFIG= yes -CONFIGURE_ARGS= --with-wget=${FETCH_BINARY} -INSTALL_TARGET= install-strip -SUB_FILES= pkg-deinstall pkg-message -PORTDOCS= README +CMAKE_ON= INSTALL_RAW_BANKDATA_FILE +CMAKE_OFF= ENABLE_BANKDATA_DOWNLOAD -OPTIONS_DEFINE= DOCS PYTHON +PLIST_SUB= BANKDATA_DATE=${BANKDATA_DATE} +PORTDOCS= README.md + +BANKDATA_DATE= 20201207 + +OPTIONS_DEFINE= DOCS DOXYGEN OPTIONS_SUB= yes -PYTHON_USES= python:2.7 -PYTHON_CONFIGURE_ENABLE= python +DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ + dot:graphics/graphviz +DOXYGEN_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Doxygen -TEST_TARGET= check +TEST_TARGET= test post-patch: - @${REINPLACE_CMD} -e "s/-lstdc++//g" ${WRKSRC}/src/lib/Makefile.in + @${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_DATADIR}\/man|$${CMAKE_INSTALL_MANDIR}|' ${WRKSRC}/doc/CMakeLists.txt + @(cd ${WRKSRC}/src/bankdata && ${RM} bankdata_*.txt blz_*.txt) + @${CP} ${WRKDIR}/${PORTNAME}-bankdata-${BANKDATA_DATE}/blz_${BANKDATA_DATE}.txt ${WRKSRC}/src/bankdata + @${TOUCH} ${WRKSRC}/src/bankdata/bankdata_${BANKDATA_DATE}.txt post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/finance/ktoblzcheck/distinfo b/finance/ktoblzcheck/distinfo index c87a9d878108..4d8ce8b8234a 100644 --- a/finance/ktoblzcheck/distinfo +++ b/finance/ktoblzcheck/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1488563018 -SHA256 (ktoblzcheck-1.49.tar.gz) = e8971bc6689ea72b174c194bd43ba2c0b65112b0c3f9fd2371562e0c3ab57d29 -SIZE (ktoblzcheck-1.49.tar.gz) = 561501 +TIMESTAMP = 1609010429 +SHA256 (ktoblzcheck-1.53.tar.gz) = 18b9118556fe83240f468f770641d2578f4ff613cdcf0a209fb73079ccb70c55 +SIZE (ktoblzcheck-1.53.tar.gz) = 531459 +SHA256 (ktoblzcheck-bankdata-20201207.tar.gz) = dc801b676b3e936ff3c40b604d28b6bdbc094b95625b2e20799f7c566622b705 +SIZE (ktoblzcheck-bankdata-20201207.tar.gz) = 356356 diff --git a/finance/ktoblzcheck/files/patch-src_CMakeLists.txt b/finance/ktoblzcheck/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..5f15e3e63f9a --- /dev/null +++ b/finance/ktoblzcheck/files/patch-src_CMakeLists.txt @@ -0,0 +1,12 @@ +Disable the Python bindings for now. They could be in a slave port later if +needed, but I am not currently aware of anything that uses them. + +--- src/CMakeLists.txt.orig 2020-12-28 00:28:41 UTC ++++ src/CMakeLists.txt +@@ -9,6 +9,3 @@ add_subdirectory(bankdata) + add_subdirectory(include) + add_subdirectory(lib) + add_subdirectory(bin) +-if(Python_Development_FOUND) +- add_subdirectory(python) +-endif() diff --git a/finance/ktoblzcheck/files/patch-src_bankdata_online__update.pl.in b/finance/ktoblzcheck/files/patch-src_bankdata_online__update.pl.in deleted file mode 100644 index 94956b2adb1e..000000000000 --- a/finance/ktoblzcheck/files/patch-src_bankdata_online__update.pl.in +++ /dev/null @@ -1,44 +0,0 @@ -- Use fetch(1) instead of requiring wget or lynx -- Download over a secure connection - ---- src/bankdata/online_update.pl.in.orig 2012-10-01 21:03:49 UTC -+++ src/bankdata/online_update.pl.in -@@ -21,8 +21,8 @@ $pkgdatadir="$datadir/@PACKAGE@"; - $BANKDATADIR="@BANKDATA_PATH@"; - - ## Sanity checks --die "Neither wget nor lynx is available on your system, or was available on the system where the installed rpm was built. This tool requires wget or lynx. If you have it i --nstalled, then edit the script and set the variable WGET or LYNX to the full path to wget or lynx. Aborting for now." -+die "Neither fetch nor lynx is available on your system, or was available on the system where the installed package was built. This tool requires fetch or lynx. If you have it i -+nstalled, then edit the script and set the variable WGET or LYNX to the full path to fetch or lynx. Aborting for now." - if $WGET eq "NO" and $LYNX eq "NO"; - #die "sed or grep is not available on your system. This tool requires it. Aborting." - # if $SED eq "NO" || $GREP eq "NO"; -@@ -35,13 +35,13 @@ die "The directory for the bankdata \"$B - - ## Common constants - $debug=0; # set this to nonzero for activating debugging mode --$BASE_URL="http://www.bundesbank.de"; -+$BASE_URL="https://www.bundesbank.de"; - $MAIN_URL="$BASE_URL"; --$MAIN_DOC="$MAIN_URL/Redaktion/DE/Standardartikel/Kerngeschaeftsfelder/Unbarer_Zahlungsverkehr/bankleitzahlen_download.html"; -+$MAIN_DOC="$MAIN_URL/Redaktion/DE/Standardartikel/Aufgaben/Unbarer_Zahlungsverkehr/bankleitzahlen_download.html"; - - if ($debug == 0) { - if ($WGET ne "NO") { -- $DOWNLOADCMD = "$WGET -O - $MAIN_DOC"; -+ $DOWNLOADCMD = "$WGET -q -o - $MAIN_DOC"; - } else { - $DOWNLOADCMD = "$LYNX -source $MAIN_DOC"; - } -@@ -145,8 +145,8 @@ if ($debug == 0) { - ## - ## 1. Download - if ($WGET ne "NO") { -- print "$ECHO $WGET -O $install_1 $download\n"; -- system("$ECHO $WGET -O $install_1 $download"); -+ print "$ECHO $WGET -q -o $install_1 $download\n"; -+ system("$ECHO $WGET -q -o $install_1 $download"); - } else { - print "$ECHO $LYNX -source $download $gt $install_1\n"; - system("$ECHO $LYNX -source $download $gt $install_1");# || die "can't call system: $!"; diff --git a/finance/ktoblzcheck/files/pkg-deinstall.in b/finance/ktoblzcheck/files/pkg-deinstall.in deleted file mode 100644 index f1bf52cd1186..000000000000 --- a/finance/ktoblzcheck/files/pkg-deinstall.in +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -if [ "${2}" = "POST-DEINSTALL" ]; then - if [ -d %%DATADIR%% ]; then - echo "" - echo "--------------------------------------------------------------------" - echo "To completely remove the port, you may need to remove" - echo "the following directories and the content manually:" - echo "" - echo " %%DATADIR%%" - echo "--------------------------------------------------------------------" - echo "" - fi -fi diff --git a/finance/ktoblzcheck/files/pkg-message.in b/finance/ktoblzcheck/files/pkg-message.in deleted file mode 100644 index bdba5877329b..000000000000 --- a/finance/ktoblzcheck/files/pkg-message.in +++ /dev/null @@ -1,17 +0,0 @@ -[ -{ type: install - message: <<EOM -The bankdata included with the ktoblzcheck distribution is outdated. -You should update this bankdata upon installation and periodically -afterwards. New bankdata is typically available every three months. - -To update the bankdata, run (as root): - -# %%DATADIR%%/online_update.pl - -The script is interactive and will present you with the bankdata -available for download. Follow the prompts and it will write the -new bankdata to %%DATADIR%%. -EOM -} -] diff --git a/finance/ktoblzcheck/pkg-plist b/finance/ktoblzcheck/pkg-plist index 27b2cdd5d201..aff96e62f069 100644 --- a/finance/ktoblzcheck/pkg-plist +++ b/finance/ktoblzcheck/pkg-plist @@ -1,16 +1,74 @@ +bin/ibanchk bin/ktoblzcheck include/iban.h include/ktoblzcheck.h +lib/cmake/KtoBlzCheck/KtoBlzCheckConfig.cmake +lib/cmake/KtoBlzCheck/KtoBlzCheckConfigVersion.cmake +lib/cmake/KtoBlzCheck/KtoBlzCheckTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/KtoBlzCheck/KtoBlzCheckTargets.cmake lib/libktoblzcheck.so lib/libktoblzcheck.so.1 lib/libktoblzcheck.so.1.5.26 -%%PYTHON%%%%PYTHON_SITELIBDIR%%/ktoblzcheck.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/ktoblzcheck.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/ktoblzcheck.pyo libdata/pkgconfig/ktoblzcheck.pc +man/man1/ibanchk.1.gz man/man1/ktoblzcheck.1.gz -%%DATADIR%%/bankdata_20140908.txt -%%DATADIR%%/bankdata_20141208.txt -%%DATADIR%%/bundesbank.pl +%%DOXYGEN%%%%DOCSDIR%%/api/README_8md.html +%%DOXYGEN%%%%DOCSDIR%%/api/annotated.html +%%DOXYGEN%%%%DOCSDIR%%/api/bc_s.png +%%DOXYGEN%%%%DOCSDIR%%/api/bdwn.png +%%DOXYGEN%%%%DOCSDIR%%/api/classAccountNumberCheck-members.html +%%DOXYGEN%%%%DOCSDIR%%/api/classAccountNumberCheck.html +%%DOXYGEN%%%%DOCSDIR%%/api/classAccountNumberCheck_1_1Record-members.html +%%DOXYGEN%%%%DOCSDIR%%/api/classAccountNumberCheck_1_1Record.html +%%DOXYGEN%%%%DOCSDIR%%/api/classIban-members.html +%%DOXYGEN%%%%DOCSDIR%%/api/classIban.html +%%DOXYGEN%%%%DOCSDIR%%/api/classIbanCheck-members.html +%%DOXYGEN%%%%DOCSDIR%%/api/classIbanCheck.html +%%DOXYGEN%%%%DOCSDIR%%/api/classes.html +%%DOXYGEN%%%%DOCSDIR%%/api/closed.png +%%DOXYGEN%%%%DOCSDIR%%/api/dir_2d731f5ea854aa8d4182cb287b4b4714.html +%%DOXYGEN%%%%DOCSDIR%%/api/dir_5652562e240707faebb7b26ba93ec871.html +%%DOXYGEN%%%%DOCSDIR%%/api/dir_5a44bfe66872ebd87256b63344bc501a.html +%%DOXYGEN%%%%DOCSDIR%%/api/dir_6b601777cc03b1c222ba0713691323f0.html +%%DOXYGEN%%%%DOCSDIR%%/api/dir_8f1ddfcaba34d370f217a025e0bf2872.html +%%DOXYGEN%%%%DOCSDIR%%/api/doc.png +%%DOXYGEN%%%%DOCSDIR%%/api/doxygen.css +%%DOXYGEN%%%%DOCSDIR%%/api/doxygen.png +%%DOXYGEN%%%%DOCSDIR%%/api/dynsections.js +%%DOXYGEN%%%%DOCSDIR%%/api/files.html +%%DOXYGEN%%%%DOCSDIR%%/api/folderclosed.png +%%DOXYGEN%%%%DOCSDIR%%/api/folderopen.png +%%DOXYGEN%%%%DOCSDIR%%/api/functions.html +%%DOXYGEN%%%%DOCSDIR%%/api/functions_enum.html +%%DOXYGEN%%%%DOCSDIR%%/api/functions_eval.html +%%DOXYGEN%%%%DOCSDIR%%/api/functions_func.html +%%DOXYGEN%%%%DOCSDIR%%/api/functions_rela.html +%%DOXYGEN%%%%DOCSDIR%%/api/functions_type.html +%%DOXYGEN%%%%DOCSDIR%%/api/functions_vars.html +%%DOXYGEN%%%%DOCSDIR%%/api/globals.html +%%DOXYGEN%%%%DOCSDIR%%/api/globals_defs.html +%%DOXYGEN%%%%DOCSDIR%%/api/globals_func.html +%%DOXYGEN%%%%DOCSDIR%%/api/globals_type.html +%%DOXYGEN%%%%DOCSDIR%%/api/iban_8h.html +%%DOXYGEN%%%%DOCSDIR%%/api/iban_8h_source.html +%%DOXYGEN%%%%DOCSDIR%%/api/index.html +%%DOXYGEN%%%%DOCSDIR%%/api/jquery.js +%%DOXYGEN%%%%DOCSDIR%%/api/ktoblzcheck_8h.html +%%DOXYGEN%%%%DOCSDIR%%/api/ktoblzcheck_8h_source.html +%%DOXYGEN%%%%DOCSDIR%%/api/menu.js +%%DOXYGEN%%%%DOCSDIR%%/api/menudata.js +%%DOXYGEN%%%%DOCSDIR%%/api/nav_f.png +%%DOXYGEN%%%%DOCSDIR%%/api/nav_g.png +%%DOXYGEN%%%%DOCSDIR%%/api/nav_h.png +%%DOXYGEN%%%%DOCSDIR%%/api/open.png +%%DOXYGEN%%%%DOCSDIR%%/api/splitbar.png +%%DOXYGEN%%%%DOCSDIR%%/api/sync_off.png +%%DOXYGEN%%%%DOCSDIR%%/api/sync_on.png +%%DOXYGEN%%%%DOCSDIR%%/api/tab_a.png +%%DOXYGEN%%%%DOCSDIR%%/api/tab_b.png +%%DOXYGEN%%%%DOCSDIR%%/api/tab_h.png +%%DOXYGEN%%%%DOCSDIR%%/api/tab_s.png +%%DOXYGEN%%%%DOCSDIR%%/api/tabs.css +%%DATADIR%%/bankdata_%%BANKDATA_DATE%%.txt +%%DATADIR%%/blz_%%BANKDATA_DATE%%.txt %%DATADIR%%/ibandata.txt -%%DATADIR%%/online_update.pl |