diff --git a/astro/astrometry/Makefile b/astro/astrometry/Makefile index 712b39ca3d0f..600855636bb7 100644 --- a/astro/astrometry/Makefile +++ b/astro/astrometry/Makefile @@ -1,80 +1,81 @@ PORTNAME= astrometry PORTVERSION= 0.95 CATEGORIES= astro MASTER_SITES= https://github.com/dstndstn/${PORTNAME}.net/releases/download/${DISTVERSION}/ DISTNAME= ${PORTNAME}.net-${PORTVERSION} MAINTAINER= rhurlin@FreeBSD.org COMMENT= Astronomic calibration service WWW= https://astrometry.net/ LICENSE= GPLv3+ BROKEN_armv6= fails to link: os-features-test.c:10: undefined symbol 'canonicalize_file_name' BROKEN_armv7= fails to link: os-features-test.c:10: undefined symbol 'canonicalize_file_name' -BUILD_DEPENDS= ${PYNUMPY} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYNUMPY} LIB_DEPENDS= libcairo.so:graphics/cairo \ libcfitsio.so:astro/cfitsio \ libgsl.so:math/gsl \ libnetpbm.so:graphics/netpbm \ libpng16.so:graphics/png \ libwcs.so:astro/wcslib RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astropy>0:astro/py-astropy@${PY_FLAVOR} \ ${PYNUMPY} USES= gmake jpeg localbase pkgconfig python shebangfix USE_LDCONFIG= yes SHEBANG_FILES= bin/* plot/plotann.py sdss/*.py solver/*.py util/[!c]*.py MAKE_ARGS= NETPBM_INC="-I${LOCALBASE}/include/netpbm" \ NETPBM_LIB="-L${LOCALBASE}/lib -lnetpbm" \ SYSTEM_GSL=yes MAKE_ENV= INSTALL_DIR=${STAGEDIR}${PREFIX} \ DATA_INSTALL_DIR=${STAGEDIR}${DATADIR} \ DOC_INSTALL_DIR=${STAGEDIR}${DOCSDIR} \ EXAMPLE_INSTALL_DIR=${STAGEDIR}${EXAMPLESDIR} \ MAN1_INSTALL_DIR=${STAGEDIR}${PREFIX}/share/man/man1 \ PY_BASE_INSTALL_DIR=${STAGEDIR}${PYTHON_LIBDIR}/astrometry \ PYTHON=${PYTHON_CMD} PYTHON_SCRIPT=${PYTHON_CMD} MAKE_JOBS_UNSAFE= yes ALL_TARGET= all extra LDFLAGS+= -lz CONFLICTS_INSTALL= afni p5-Text-RecordParser # bin/imstat bin/tabmerge SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFAULT= EXAMPLES FILES= an-fitstopnm an-pnmtofits astrometry-engine augment-xylist \ build-astrometry-index downsample-fits fit-wcs \ fits-column-merge fits-flip-endian fits-guess-scale \ fitscopy fitsgetext fitsverify get-healpix get-wcs \ hpsplit image2xy imarith imcopy imstat listhead liststruc \ modhead new-wcs pad-file plot-constellations \ plotquad plotxy query-starkd solve-field startree \ subtable tablist tabmerge tabsort wcs-grab wcs-match \ wcs-pv2sip wcs-rd2xy wcs-resample wcs-to-tan wcs-xy2rd \ wcsinfo post-install: .for file in ${FILES} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file} .endfor ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libastrometry.so ${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/astrometry/solver/_solver${PYTHON_EXT_SUFFIX}.so @${REINPLACE_CMD} -i '' \ -e 's|${STAGEDIR}/usr/local/data|${DATADIR}|' \ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg @${RMDIR} ${STAGEDIR}${PREFIX}/data @${MKDIR} ${STAGEDIR}${DATADIR}/sdss @${MKDIR} ${STAGEDIR}${DATADIR}/solver @${MKDIR} ${STAGEDIR}${DATADIR}/catalogs ${INSTALL_DATA} ${WRKSRC}/sdss/testdata/*.fit* ${STAGEDIR}${DATADIR}/sdss ${INSTALL_DATA} ${WRKSRC}/solver/index-9918.fits ${STAGEDIR}${DATADIR}/solver ${INSTALL_DATA} ${WRKSRC}/catalogs/*.fit* ${STAGEDIR}${DATADIR}/catalogs .include diff --git a/audio/py-pyradio/Makefile b/audio/py-pyradio/Makefile index bc8ddda871e8..0288249d56f7 100644 --- a/audio/py-pyradio/Makefile +++ b/audio/py-pyradio/Makefile @@ -1,79 +1,80 @@ PORTNAME= pyradio DISTVERSION= 0.9.3.7 PORTREVISION= 1 CATEGORIES= audio python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Curses based Internet radio player WWW= https://github.com/coderholic/pyradio LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}dnspython>=2.2.1:dns/py-dnspython@${PY_FLAVOR} \ ${PKGNAMEPREFIX}netifaces>=0.11.0:net/py-netifaces@${PY_FLAVOR} \ ${PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \ ${PKGNAMEPREFIX}wheel>=0.38.4:devel/py-wheel@${PY_FLAVOR} \ bash:shells/bash RUN_DEPENDS= ${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}dnspython>=2.2.1:dns/py-dnspython@${PY_FLAVOR} \ ${PKGNAMEPREFIX}netifaces>=0.11.0:net/py-netifaces@${PY_FLAVOR} \ ${PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \ ${PKGNAMEPREFIX}requests>=2.28.1:www/py-requests@${PY_FLAVOR} \ ${PKGNAMEPREFIX}rich>=13.3.2:textproc/py-rich@${PY_FLAVOR} \ ${PKGNAMEPREFIX}wheel>=0.38.4:devel/py-wheel@${PY_FLAVOR} \ bash:shells/bash \ xdg-open:devel/xdg-utils USES= python USE_GITHUB= yes GH_ACCOUNT= coderholic USE_PYTHON= autoplist pep517 NO_ARCH= yes PLIST_FILES= share/applications/${PORTNAME}.desktop \ share/pixmaps/${PORTNAME}.png PORTDOCS= * OPTIONS_DEFINE= DOCS METADATA OPTIONS_DEFAULT= METADATA MPV OPTIONS_SINGLE= MEDIA_PLAYER OPTIONS_SINGLE_MEDIA_PLAYER= MPLAYER MPV VLC METADATA_DESC= Insert tags, chapters and cover into recordings # override predefined MPV_DESC= Mpv media player support VLC_DESC= VLC media player support DOCS_PLIST_FILES= share/man/man1/pyradio.1.gz \ share/man/man1/pyradio_rb.1.gz \ share/man/man1/pyradio_rec.1.gz \ share/man/man1/pyradio_server.1.gz \ share/man/man1/pyradio-client.1.gz METADATA_RUN_DEPENDS+= mkvinfo:multimedia/mkvtoolnix MPLAYER_RUN_DEPENDS+= mplayer:multimedia/mplayer MPV_RUN_DEPENDS+= mpv:multimedia/mpv VLC_RUN_DEPENDS+= vlc:multimedia/vlc post-patch: @${SED} -i.bak -e 's/\(distro =\) None/\1 ${OPSYS}/' \ -e 's/\(enable_notifications =\) -1/\1 0/' \ -e 's/\(xdg_compliant =\) False/\1 True/' \ ${WRKSRC}/pyradio/config post-install: ${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.desktop \ ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop ${INSTALL_DATA} ${WRKSRC}/devel/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/docs/pyradio*.1 ${STAGEDIR}${PREFIX}/share/man/man1 ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}/ .include diff --git a/audio/py-torchaudio/Makefile b/audio/py-torchaudio/Makefile index 668191fb02d6..bb925303a908 100644 --- a/audio/py-torchaudio/Makefile +++ b/audio/py-torchaudio/Makefile @@ -1,47 +1,48 @@ PORTNAME= torchaudio DISTVERSIONPREFIX= v DISTVERSION= 2.2.1 CATEGORIES= audio python # machine-learning MASTER_SITES= https://downloads.sourceforge.net/project/sox/sox/14.4.2/:sox PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= sox-14.4.2.tar.bz2:sox EXTRACT_ONLY= ${GH_ACCOUNT}-${GH_PROJECT}-${DISTVERSIONFULL}_GH0.tar.gz MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch-based audio signal processing and machine learning library WWW= https://pytorch.org/audio/stable/index.html LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ cmake:devel/cmake-core \ ninja:devel/ninja \ pybind11>0:devel/pybind11 LIB_DEPENDS= libabsl_symbolize.so:devel/abseil \ libprotobuf.so:devel/protobuf RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} USES= python USE_PYTHON= pep517 autoplist pytest MAKE_ENV= USE_FFMPEG=0 # ffmpeg integration is broken or unavailable, see https://github.com/pytorch/audio/issues/3716 USE_GITHUB= yes GH_ACCOUNT= pytorch GH_PROJECT= audio post-patch: @${REINPLACE_CMD} \ -e 's| URL .*| URL file://${DISTDIR}/sox-14.4.2.tar.bz2|' \ ${WRKSRC}/third_party/sox/CMakeLists.txt post-install: @cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} && ${STRIP_CMD} \ torchaudio/lib/_torchaudio.so \ torchaudio/lib/_torchaudio_sox.so \ torchaudio/lib/libtorchaudio.so \ torchaudio/lib/libtorchaudio_sox.so .include diff --git a/audio/qjackcapture/Makefile b/audio/qjackcapture/Makefile index 43821f89ccbf..dd0eb3ad2fce 100644 --- a/audio/qjackcapture/Makefile +++ b/audio/qjackcapture/Makefile @@ -1,32 +1,33 @@ PORTNAME= qjackcapture DISTVERSIONPREFIX= v DISTVERSION= 0.2.1 PORTREVISION= 2 CATEGORIES= audio MAINTAINER= yuri@FreeBSD.org COMMENT= GUI for the jack_capture program using PyQt5 WWW= https://github.com/SpotlightKid/qjackcapture LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}natsort>0:devel/py-natsort@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyjacklib>0:audio/py-pyjacklib@${PY_FLAVOR} -BUILD_DEPENDS= ${PY_DEPENDS} +BUILD_DEPENDS= ${PY_DEPENDS} \ + ${PY_SETUPTOOLS} RUN_DEPENDS= ${PY_DEPENDS} \ jack_capture:audio/jack-capture USES= desktop-file-utils gmake pyqt:5 python shebangfix USE_PYQT= pyqt5 SHEBANG_FILES= qjackcapture/app.py USE_GITHUB= yes GH_ACCOUNT= SpotlightKid MAKE_ARGS= PYTHON=${PYTHON_CMD} PLIST_SUB= VER=${DISTVERSION} .include diff --git a/biology/py-dnaio/Makefile b/biology/py-dnaio/Makefile index 5e12ac4e42c7..e473a1ccde21 100644 --- a/biology/py-dnaio/Makefile +++ b/biology/py-dnaio/Makefile @@ -1,20 +1,21 @@ PORTNAME= dnaio DISTVERSION= 1.2.0 CATEGORIES= biology python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Read and write FASTQ and FASTA WWW= https://pypi.python.org/pypi/dnaio LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} USES= python USE_PYTHON= autoplist cython pep517 .include diff --git a/biology/py-macs3/Makefile b/biology/py-macs3/Makefile index b51819da5c62..7e903866af04 100644 --- a/biology/py-macs3/Makefile +++ b/biology/py-macs3/Makefile @@ -1,52 +1,53 @@ PORTNAME= MACS3 DISTVERSIONPREFIX= v DISTVERSION= 3.0.1 CATEGORIES= biology python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jwb@FreeBSD.org COMMENT= Peak caller aimed at transcription factor binding sites WWW= https://github.com/taoliu/MACS LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON_i386=Requires _Float16 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ ${PYNUMPY} \ simde>0:devel/simde \ ${PYTHON_PKGNAMEPREFIX}cykhash>0:devel/py-cykhash@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hmmlearn>0:math/py-hmmlearn@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}cykhash>0:devel/py-cykhash@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hmmlearn>0:math/py-hmmlearn@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ bash:shells/bash USES= localbase perl5 python shebangfix USE_GITHUB= yes USE_PERL5= test USE_PYTHON= autoplist concurrent cython pep517 GH_ACCOUNT= macs3-project GH_PROJECT= MACS SHEBANG_FILES= test/cmdlinetest* test/prockreport test/*.py test/pyprofile* .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1302509 IGNORE= does not run properly on FreeBSD 13.2 and earlier due to use of dynamically loaded libc by py-threadpoolctl. Please upgrade to a newer FreeBSD or use py-macs2 instead. See PR 276231 .endif post-stage: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/MACS3/*/*.so # FIXME: Some tests fail due to a py-threadpoolctl issue # https://github.com/joblib/threadpoolctl/pull/148 do-test: deinstall reinstall @${RM} -rf ${WRKSRC}/temp @cd ${WRKSRC}/test && ./cmdlinetest tag .include diff --git a/databases/mongodb44/Makefile b/databases/mongodb44/Makefile index 22c94ad946ec..c99d892ab6d7 100644 --- a/databases/mongodb44/Makefile +++ b/databases/mongodb44/Makefile @@ -1,98 +1,99 @@ PORTNAME= mongodb DISTVERSIONPREFIX= r DISTVERSION= 4.4.29 CATEGORIES= databases net MASTER_SITES= https://fastdl.mongodb.org/src/ \ http://fastdl.mongodb.org/src/ PKGNAMESUFFIX= ${DISTVERSION:R:S/.//} DISTNAME= mongodb-src-${DISTVERSIONPREFIX}${DISTVERSION} MAINTAINER= ronald@FreeBSD.org COMMENT= Distributed document-oriented "NoSQL" database (4.4.x Branch) WWW= https://docs.mongodb.com/v4.4/ LICENSE= SSPLv1 APACHE20 # mongodb is SSPLv1, C++ driver is APACHE20 LICENSE_COMB= multi LICENSE_NAME_SSPLv1= Server Side Public License Version 1 LICENSE_FILE_SSPLv1= ${WRKSRC}/LICENSE-Community.txt LICENSE_PERMS_SSPLv1= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept DEPRECATED= EOL as of February 2024, https://www.mongodb.com/legal/support-policy/lifecycles EXPIRATION_DATE=2024-07-31 ONLY_FOR_ARCHS= aarch64 amd64 powerpc64le ONLY_FOR_ARCHS_REASON= only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} LIB_DEPENDS= libpcre.so:devel/pcre \ libcurl.so:ftp/curl \ libsnappy.so:archivers/snappy USES= compiler:c++17-lang cpe python:build scons USE_RC_SUBR= mongod # --modules= disables "enterprise" module from src/mongo/db/modules/ MAKE_ARGS= --use-system-zlib \ --use-system-pcre \ --use-system-snappy \ --libc++ \ --cxx-std=17 \ --modules= \ --runtime-hardening=on \ -j ${MAKE_JOBS_NUMBER} \ --disable-warnings-as-errors \ VERBOSE=on \ AR=llvm-ar CFLAGS+= -D_HAS_AUTO_PTR_ETC=0 CONFLICTS_INSTALL= mongodb[0-9][0-9] # etc/mongodb.conf.sample PORTSCOUT= limit:^4\.4\. USERS= mongodb GROUPS= mongodb OPTIONS_DEFINE= LTO SASL SSL OPTIONS_DEFINE_aarch64= ARMV80A OPTIONS_DEFAULT= LTO SASL SSL OPTIONS_DEFAULT_aarch64= ARMV80A OPTIONS_EXCLUDE_aarch64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}} OPTIONS_EXCLUDE_aarch64_14= LTO # Does not work with llvm12 on aarch64. # MongoDB on non-LSE ARM cpu like Raspberry Pi can work but is unsupported upstream. # Can give corruption on high concurrency. # Please read https://jira.mongodb.org/browse/SERVER-71772. ARMV80A_DESC= Enable non-LSE ARM64 CPUs like RPI4. ARMV80A_EXTRA_PATCHES= ${FILESDIR}/extrapatch-SConstruct LTO_MAKE_ARGS= --lto=on SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 SASL_MAKE_ARGS= --use-sasl-client SSL_USES= ssl SSL_MAKE_ARGS= --ssl .include .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le EXTRA_PATCHES+= ${FILESDIR}/${ARCH} .endif ALL_TARGET= install-core CPE_PRODUCT= mongodb pre-patch: ${MV} ${WRKSRC}/src/third_party/wiredtiger/src/checksum/power8/crc32.sx ${WRKSRC}/src/third_party/wiredtiger/src/checksum/power8/crc32.S do-install: .for f in mongo mongod mongos ${INSTALL_PROGRAM} ${WRKSRC}/build/install${PREFIX}/bin/${f} ${STAGEDIR}${PREFIX}/bin .endfor ${INSTALL_DATA} ${WRKSRC}/rpm/mongod.conf ${STAGEDIR}${PREFIX}/etc/mongodb.conf.sample .include diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile index f546e0b9d70e..60d1e6ac1811 100644 --- a/databases/mongodb50/Makefile +++ b/databases/mongodb50/Makefile @@ -1,120 +1,121 @@ PORTNAME= mongodb DISTVERSIONPREFIX= r DISTVERSION= 5.0.27 CATEGORIES= databases net PKGNAMESUFFIX= ${DISTVERSION:R:S/.//} MAINTAINER= ronald@FreeBSD.org COMMENT= MongoDB Community Edition (5.0.x Branch) WWW= https://www.mongodb.com/docs/v5.0/ LICENSE= APACHE20 SSPLv1 # mongodb is SSPLv1, C++ driver is APACHE20 LICENSE_COMB= multi LICENSE_NAME_SSPLv1= Server Side Public License Version 1 LICENSE_FILE_SSPLv1= ${WRKSRC}/LICENSE-Community.txt LICENSE_PERMS_SSPLv1= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= aarch64 amd64 powerpc64le ONLY_FOR_ARCHS_REASON= only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} LIB_DEPENDS= libcurl.so:ftp/curl \ libpcre.so:devel/pcre \ libsnappy.so:archivers/snappy \ libstemmer.so:textproc/snowballstemmer \ libunwind.so:devel/libunwind \ libyaml-cpp.so:devel/yaml-cpp \ libzstd.so:archivers/zstd USES= compiler:c++17-lang cpe python:build scons shebangfix USE_RC_SUBR= mongod USE_GITHUB= yes GH_ACCOUNT= mongodb GH_PROJECT= mongo SHEBANG_FILES= buildscripts/scons.py python_OLD_CMD= @python_interpreter@ EXTRACT_AFTER_ARGS= --exclude src/third_party/pcre-* \ --exclude src/third_party/snappy-* \ --exclude src/third_party/unwind \ --exclude src/third_party/yaml-cpp \ --exclude src/third_party/zlib-* \ --exclude src/third_party/zstandard-* \ --no-same-owner --no-same-permissions # --modules= disables "enterprise" module from src/mongo/db/modules/ MAKE_ARGS= --cxx-std=17 \ --disable-warnings-as-errors \ --libc++ \ --modules= \ --runtime-hardening=on \ --use-system-libunwind \ --use-system-pcre \ --use-system-snappy \ --use-system-stemmer \ --use-system-yaml \ --use-system-zlib \ --use-system-zstd \ -j ${MAKE_JOBS_NUMBER} \ AR=llvm-ar \ MONGO_VERSION=${DISTVERSION} \ VERBOSE=on CFLAGS+= -DBOOST_NO_CXX98_FUNCTION_BASE CONFLICTS_INSTALL= mongodb[0-9][0-9] # etc/mongodb.conf.sample USERS= mongodb GROUPS= mongodb OPTIONS_DEFINE= LTO SASL SSL NOAVX OPTIONS_DEFAULT= SASL SSL NOAVX NOAVX_DESC= "Disable AVX instructions on amd64 (Sandybridge+)" LTO_MAKE_ARGS= --lto=on NOAVX_MAKE_ARGS= --experimental-optimization="-sandybridge" SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 SASL_MAKE_ARGS= --use-sasl-client SSL_USES= ssl SSL_MAKE_ARGS= --ssl .include .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le EXTRA_PATCHES= ${FILESDIR}/${ARCH} .endif ALL_TARGET= install-core # This ports is only following the Major Release. # https://docs.mongodb.com/manual/reference/versioning/ PORTSCOUT= limit:^5\.0\. CPE_PRODUCT= mongodb pre-patch: ${MV} ${WRKSRC}/src/third_party/wiredtiger/src/checksum/power8/crc32.sx ${WRKSRC}/src/third_party/wiredtiger/src/checksum/power8/crc32.S do-build: ${WRKSRC}/buildscripts/scons.py -C ${WRKSRC} ${MAKE_ARGS} do-install: .for f in mongo mongod mongos ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} .endfor ${INSTALL_DATA} ${WRKSRC}/rpm/mongod.conf ${STAGEDIR}${PREFIX}/etc/mongodb.conf.sample ${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in LICENSE-Community.txt MPL-2 README THIRD-PARTY-NOTICES ${MV} ${STAGEDIR}${PREFIX}/${doc} ${STAGEDIR}${DOCSDIR}/ .endfor ${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py .include diff --git a/databases/mongodb60/Makefile b/databases/mongodb60/Makefile index d6c6a8b77805..0a29c8dc8ee3 100644 --- a/databases/mongodb60/Makefile +++ b/databases/mongodb60/Makefile @@ -1,148 +1,149 @@ PORTNAME= mongodb DISTVERSIONPREFIX= r DISTVERSION= 6.0.15 PORTREVISION= 3 CATEGORIES= databases net PKGNAMESUFFIX= ${DISTVERSION:R:S/.//} MAINTAINER= ronald@FreeBSD.org COMMENT= MongoDB Community Edition (6.0.x Branch) WWW= https://www.mongodb.com/docs/v6.0/ LICENSE= APACHE20 SSPLv1 # mongodb is SSPLv1, C++ driver is APACHE20 LICENSE_COMB= multi LICENSE_NAME_SSPLv1= Server Side Public License Version 1 LICENSE_FILE_SSPLv1= ${WRKSRC}/LICENSE-Community.txt LICENSE_PERMS_SSPLv1= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= aarch64 amd64 powerpc64le ONLY_FOR_ARCHS_REASON= only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pymongo>0:databases/py-pymongo@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} # build depends used while running ${WRKSRC}/src/third_party/mozjs/gen-config.sh BUILD_DEPENDS+= autoconf2.13:devel/autoconf2.13 \ gsed:textproc/gsed LIB_DEPENDS= libcurl.so:ftp/curl \ libicuuc.so:devel/icu \ libpcre.so:devel/pcre \ libsnappy.so:archivers/snappy \ libstemmer.so:textproc/snowballstemmer \ libunwind.so:devel/libunwind \ libyaml-cpp.so:devel/yaml-cpp \ libzstd.so:archivers/zstd USES= compiler:c++17-lang cpe python:build scons shebangfix # gmake is used while running ${WRKSRC}/src/third_party/mozjs/gen-config.sh USES+= gmake pkgconfig # mozjs tag comes from ${WRKSRC}/src/third_party/mozjs/get-sources.sh MOZJS_TAG= 82aac6af18abcd5bf188afbc821779ccb0ca0902 USE_GITHUB= yes GH_ACCOUNT= mongodb mongodb-forks:mozjs GH_PROJECT= mongo spidermonkey:mozjs GH_TAGNAME= ${MOZJS_TAG}:mozjs USE_RC_SUBR= mongod SHEBANG_FILES= buildscripts/scons.py python_OLD_CMD= @python_interpreter@ EXTRACT_AFTER_ARGS= --exclude src/third_party/icu4c-* \ --exclude src/third_party/pcre-* \ --exclude src/third_party/snappy-* \ --exclude src/third_party/libstemmer_c \ --exclude src/third_party/unwind \ --exclude src/third_party/yaml-cpp \ --exclude src/third_party/zlib-* \ --exclude src/third_party/zstandard \ --no-same-owner --no-same-permissions MAKE_ARGS= --cxx-std=17 \ --disable-warnings-as-errors \ --libc++ \ --runtime-hardening=on \ --use-system-icu \ --use-system-libunwind \ --use-system-pcre \ --use-system-snappy \ --use-system-stemmer \ --use-system-yaml \ --use-system-zlib \ --use-system-zstd \ -j${MAKE_JOBS_NUMBER} \ AR=llvm-ar \ MONGO_VERSION=${DISTVERSION} \ VERBOSE=on CFLAGS+= -DBOOST_NO_CXX98_FUNCTION_BASE CONFLICTS_INSTALL= mongodb[0-9][0-9] USERS= mongodb GROUPS= mongodb OPTIONS_DEFINE= LTO SASL SSL NOAVX OPTIONS_DEFAULT= SASL SSL NOAVX NOAVX_DESC= "Disable AVX instructions on amd64 (Sandybridge+)" LTO_MAKE_ARGS= --lto=on NOAVX_MAKE_ARGS= --experimental-optimization="-sandybridge" SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 SASL_MAKE_ARGS= --use-sasl-client SSL_USES= ssl SSL_MAKE_ARGS= --ssl .include ALL_TARGET= install-core # This ports is only following the Major Release. # https://docs.mongodb.com/manual/reference/versioning/ PORTSCOUT= limit:^6\.0\. CPE_PRODUCT= mongodb .if ${ARCH} == amd64 MOZJS_ARCH= x86_64 .elif ${ARCH} == powerpc64le MOZJS_ARCH= ppc64le .elif ${ARCH} == aarch64 MOZJS_ARCH= ${ARCH} .endif post-patch: # fix build with python-3.11 ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/util.py ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/preprocessor.py ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/backend/base.py ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/action/process_define_files.py do-configure: # Replacement of ${WRKSRC}/src/third_party/mozjs/get-sources.sh ${LN} -sF ${WRKDIR}/spidermonkey-${MOZJS_TAG} ${WRKSRC}/src/third_party/mozjs/mozilla-release cd ${WRKSRC}/src/third_party/mozjs/mozilla-release/js/src && ${LOCALBASE}/bin/autoconf2.13 cd ${WRKSRC}/src/third_party/mozjs && PYTHON3="${PYTHON_CMD}" ${SH} ./gen-config.sh ${MOZJS_ARCH} freebsd do-build: ${WRKSRC}/buildscripts/scons.py -C ${WRKSRC} ${MAKE_ARGS} do-install: .for f in mongod mongos ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} .endfor ${INSTALL_DATA} ${WRKSRC}/rpm/mongod.conf ${STAGEDIR}${PREFIX}/etc/mongodb.conf.sample ${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in LICENSE-Community.txt MPL-2 README THIRD-PARTY-NOTICES ${MV} ${STAGEDIR}${PREFIX}/${doc} ${STAGEDIR}${DOCSDIR}/ .endfor ${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py .include diff --git a/databases/mongodb70/Makefile b/databases/mongodb70/Makefile index 5c6154065ee6..8adf763fae47 100644 --- a/databases/mongodb70/Makefile +++ b/databases/mongodb70/Makefile @@ -1,152 +1,153 @@ PORTNAME= mongodb DISTVERSIONPREFIX= r DISTVERSION= 7.0.11 CATEGORIES= databases net PKGNAMESUFFIX= ${DISTVERSION:R:S/.//} MAINTAINER= ronald@FreeBSD.org COMMENT= Distributed document-oriented "NoSQL" database (7.0.x Branch) WWW= https://www.mongodb.com/docs/v7.0/ LICENSE= APACHE20 SSPLv1 # mongodb is SSPLv1, C++ driver is APACHE20 LICENSE_COMB= multi LICENSE_NAME_SSPLv1= Server Side Public License Version 1 LICENSE_FILE_SSPLv1= ${WRKSRC}/LICENSE-Community.txt LICENSE_PERMS_SSPLv1= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= aarch64 amd64 powerpc64le ONLY_FOR_ARCHS_REASON= only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pymongo>0:databases/py-pymongo@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} # build depends used while running ${WRKSRC}/src/third_party/mozjs/gen-config.sh BUILD_DEPENDS+= autoconf2.13:devel/autoconf2.13 \ gsed:textproc/gsed LIB_DEPENDS= libcurl.so:ftp/curl \ libpcre2-8.so:devel/pcre2 \ libsnappy.so:archivers/snappy \ libstemmer.so:textproc/snowballstemmer \ libunwind.so:devel/libunwind \ libyaml-cpp.so:devel/yaml-cpp \ libzstd.so:archivers/zstd USES= compiler:c++20-lang cpe python:build scons shebangfix # gmake is used while running ${WRKSRC}/src/third_party/mozjs/gen-config.sh USES+= gmake pkgconfig # mozjs tag comes from ${WRKSRC}/src/third_party/mozjs/get-sources.sh MOZJS_TAG= 82aac6af18abcd5bf188afbc821779ccb0ca0902 USE_GITHUB= yes GH_ACCOUNT= mongodb mongodb-forks:mozjs GH_PROJECT= mongo spidermonkey:mozjs GH_TAGNAME= ${MOZJS_TAG}:mozjs USE_RC_SUBR= mongod SHEBANG_FILES= buildscripts/scons.py python_OLD_CMD= @python_interpreter@ EXTRACT_AFTER_ARGS= --exclude src/third_party/pcre2 \ --exclude src/third_party/snappy-* \ --exclude src/third_party/libstemmer_c \ --exclude src/third_party/unwind \ --exclude src/third_party/yaml-cpp \ --exclude src/third_party/zlib-* \ --exclude src/third_party/zstandard \ --no-same-owner --no-same-permissions MAKE_ARGS= --allocator=system \ --cxx-std=20 \ --disable-warnings-as-errors \ --libc++ \ --runtime-hardening=on \ --use-system-libunwind \ --use-system-pcre2 \ --use-system-snappy \ --use-system-stemmer \ --use-system-yaml \ --use-system-zlib \ --use-system-zstd \ -j${MAKE_JOBS_NUMBER} \ AR=llvm-ar \ MONGO_VERSION=${DISTVERSION} \ VERBOSE=on CFLAGS+= -DBOOST_NO_CXX98_FUNCTION_BASE CONFLICTS_INSTALL= mongodb[0-9][0-9] USERS= mongodb GROUPS= mongodb OPTIONS_DEFINE= LTO SASL SSL NOAVX OPTIONS_DEFINE_aarch64= ARMV80A OPTIONS_DEFAULT= SASL SSL NOAVX # MongoDB on non-LSE ARM cpu like Raspberry Pi can work but is unsupported upstream. # Can give corruption on high concurrency. # Please read https://jira.mongodb.org/browse/SERVER-71772. ARMV80A_DESC= Enable non-LSE ARM64 CPUs like RPI4. NOAVX_DESC= "Disable AVX instructions on amd64 (Sandybridge+)" ARMV80A_EXTRA_PATCHES= ${FILESDIR}/extrapatch-SConstruct LTO_MAKE_ARGS= --lto=on NOAVX_MAKE_ARGS= --experimental-optimization="-sandybridge" SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 SASL_MAKE_ARGS= --use-sasl-client SSL_USES= ssl SSL_MAKE_ARGS= --ssl .include ALL_TARGET= install-core # This ports is only following the Major Release. # https://docs.mongodb.com/manual/reference/versioning/ PORTSCOUT= limit:^7\.0\. CPE_PRODUCT= mongodb .if ${ARCH} == amd64 MOZJS_ARCH= x86_64 .elif ${ARCH} == powerpc64le MOZJS_ARCH= ppc64le .elif ${ARCH} == aarch64 MOZJS_ARCH= ${ARCH} .endif post-patch: # fix build with python-3.11 ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/util.py ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/preprocessor.py ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/backend/base.py ${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/action/process_define_files.py do-configure: # Replacement of ${WRKSRC}/src/third_party/mozjs/get-sources.sh ${LN} -sF ${WRKDIR}/spidermonkey-${MOZJS_TAG} ${WRKSRC}/src/third_party/mozjs/mozilla-release cd ${WRKSRC}/src/third_party/mozjs/mozilla-release/js/src && ${LOCALBASE}/bin/autoconf2.13 cd ${WRKSRC}/src/third_party/mozjs && PYTHON3="${PYTHON_CMD}" ${SH} ./gen-config.sh ${MOZJS_ARCH} freebsd do-build: ${WRKSRC}/buildscripts/scons.py -C ${WRKSRC} ${MAKE_ARGS} do-install: .for f in mongod mongos ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f} .endfor ${INSTALL_DATA} ${WRKSRC}/rpm/mongod.conf ${STAGEDIR}${PREFIX}/etc/mongodb.conf.sample ${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in LICENSE-Community.txt MPL-2 README THIRD-PARTY-NOTICES ${MV} ${STAGEDIR}${PREFIX}/${doc} ${STAGEDIR}${DOCSDIR}/ .endfor ${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py .include diff --git a/databases/py-snowddl/Makefile b/databases/py-snowddl/Makefile index 6f5f07c1a97f..bc43bf7cc0a7 100644 --- a/databases/py-snowddl/Makefile +++ b/databases/py-snowddl/Makefile @@ -1,25 +1,26 @@ PORTNAME= snowddl DISTVERSION= 0.25.2 CATEGORIES= databases python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= pat@patmaddox.com COMMENT= Object management automation tool for Snowflake WWW= https://docs.snowddl.com/ LICENSE= APACHE20 BUILD_DEPENDS= ${PY_DEPENDS} \ + ${PY_SETUPTOOLS} \ wheel-${PYTHON_VER}:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PY_DEPENDS} USES= python USE_PYTHON= autoplist concurrent pep517 PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.18,<5:devel/py-jsonschema@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.4,<3:devel/py-pydantic2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=6.0,<7:devel/py-yaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}snowflake-connector-python>=3.0,<4:databases/py-snowflake-connector-python@${PY_FLAVOR} .include diff --git a/deskutils/calibre/Makefile b/deskutils/calibre/Makefile index 9f09e0b6f799..271657278cc4 100644 --- a/deskutils/calibre/Makefile +++ b/deskutils/calibre/Makefile @@ -1,149 +1,150 @@ PORTNAME= calibre PORTVERSION= 7.12.0 CATEGORIES= deskutils python MASTER_SITES= http://download.calibre-ebook.com/${PORTVERSION}/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} DIST_SUBDIR= ${PORTNAME} MAINTAINER= madpilot@FreeBSD.org COMMENT= Ebook management application WWW= https://calibre-ebook.com/ LICENSE= GPLv3 EXTRACT_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss BUILD_DEPENDS= ${LOCALBASE}/bin/cmake:devel/cmake-core \ ${NONEXISTENT}:misc/iso-codes:extract \ + ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}apsw>=3.43.0.0:databases/py-apsw@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.12.2:www/py-beautifulsoup@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}css-parser>=1.0.10:www/py-css-parser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}html5-parser>=0.4.12:www/py-html5-parser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>=4.9.3:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mechanize>=0.4.8:www/py-mechanize@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}msgpack>=0.3:devel/py-msgpack@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>=7.0.0:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}regex>=0:textproc/py-regex@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xxhash>3.3.0:devel/py-xxhash@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}zeroconf>0:net/py-zeroconf@${PY_FLAVOR} \ liberation-fonts-ttf>=2.1.3:x11-fonts/liberation-fonts-ttf \ MathJax3>0:www/mathjax3 LIB_DEPENDS= libfreetype.so:print/freetype2 \ libhunspell-1.7.so:textproc/hunspell \ libhyphen.so:textproc/hyphen \ libicudata.so:devel/icu \ libmtp.so:multimedia/libmtp \ libpodofo.so:graphics/podofo \ libstemmer.so:textproc/snowballstemmer \ libuchardet.so:textproc/uchardet \ libxkbcommon.so:x11/libxkbcommon RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}apsw>=3.43.0.0:databases/py-apsw@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.12.2:www/py-beautifulsoup@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}css-parser>=1.0.10:www/py-css-parser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dnspython>=2.4.2:dns/py-dnspython@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}feedparser>=6.0.10:textproc/py-feedparser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}html5-parser>=0.4.12:www/py-html5-parser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jeepney>=0.8.0:devel/py-jeepney@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>=4.9.3:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markdown>=3.4.4:textproc/py-markdown@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mechanize>=0.4.8:www/py-mechanize@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}msgpack>=1.0.7:devel/py-msgpack@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}netifaces>=0.11.0:net/py-netifaces@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>=10.0.1:graphics/py-pillow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.19.0:security/py-pycryptodome@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}regex>=0:textproc/py-regex@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xxhash>=3.3.0:devel/py-xxhash@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}zeroconf>0:net/py-zeroconf@${PY_FLAVOR} \ liberation-fonts-ttf>=2.1.3:x11-fonts/liberation-fonts-ttf \ MathJax3>0:www/mathjax3 \ pdftohtml:graphics/poppler-utils \ xdg-open:devel/xdg-utils USES= desktop-file-utils gettext-runtime:build gl localbase:ldflags \ pkgconfig pyqt:6 python:3.11+ qt:6 shared-mime-info shebangfix sqlite ssl \ tar:xz xorg USE_GL= opengl USE_PYQT= pyqt6 pysip qtbuilder sip webengine USE_QT= base USE_RC_SUBR= calibre USE_XORG= x11 xext xrender USE_GITHUB= nodefault GH_TUPLE= kovidgoyal:calibre-translations:ce2962b:translations \ LibreOffice:dictionaries:7272a82:hypenation SHEBANG_GLOB= *.py *.recipe *.sh python_OLD_CMD= "/usr/bin/env python" ${LOCALBASE}/bin/python3 MAKE_ENV= CALIBRE_CONFIG_DIRECTORY=${WRKDIR}/calibre-config \ FC_INC_DIR="${LOCALBASE}/include/fontconfig" \ FC_LIB_DIR="${LOCALBASE}/lib" \ OVERRIDE_CFLAGS="${CFLAGS}" \ OVERRIDE_LDFLAGS="${LDFLAGS}" \ PODOFO_INC_DIR="${LOCALBASE}/include/podofo" \ PODOFO_LIB_DIR="${LOCALBASE}/lib" \ PYTHONDONTWRITEBYTECODE=true \ QMAKE=${QMAKE} \ SIP_BIN=${SIP} \ SIP_DIR=${PYQT_SIPDIR} \ WITH_USB=yes \ XDG_CONFIG_HOME=${WRKDIR}/xdg-config \ XDG_DATA_DIRS=${STAGEDIR}${PREFIX}/share \ XDG_UTILS_INSTALL_MODE=system SUB_LIST= PYTHON_VERSION=${PYTHON_VERSION} .include ISOCODESWRKSRC!= ${BSDMAKE} -C ${.CURDIR}/../../misc/iso-codes -V WRKSRC post-extract: @${MV} ${WRKSRC_translations} ${WRKSRC}/src/translations @${CP} ${LOCALBASE}/share/certs/ca-root-nss.crt ${WRKSRC}/resources/mozilla-ca-certs.pem @${CP} ${FILESDIR}/user-agent-data.json ${WRKSRC}/resources post-patch: @${REINPLACE_CMD} -e "s|#!/usr/bin/env python{py_major_version}|#!${PYTHON_CMD}|" \ -e "s|#!/usr/bin/env python|#!${PYTHON_CMD}|" \ ${WRKSRC}/setup/install.py \ ${WRKSRC}/src/calibre/gui2/dialogs/custom_recipes.py \ ${WRKSRC}/src/calibre/gui2/preferences/tweaks.py @${REINPLACE_CMD} -e "s|%%ISOCODESWRKSRC%%|${ISOCODESWRKSRC}|" \ ${WRKSRC}/setup/iso_codes.py do-configure: # do nothing do-build: @${MKDIR} ${WRKDIR}/calibre-config ${WRKDIR}/xdg-config @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ ${PYSETUP} bootstrap \ --system-liberation_fonts \ --path-to-liberation_fonts=${LOCALBASE}/share/fonts/Liberation \ --system-mathjax \ --path-to-mathjax=${LOCALBASE}/www/MathJax3 \ --path-to-hyphenation=${WRKSRC_hypenation} \ ) @${RMDIR} ${LOCALBASE}/libexec/qt6/locales 2>/dev/null || ${TRUE} do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}/site-packages \ ${STAGEDIR}${PREFIX}/share/icons/hicolor \ ${STAGEDIR}${PREFIX}/share/applications \ ${STAGEDIR}${PREFIX}/share/desktop-directories \ ${STAGEDIR}${PREFIX}/share/mime/packages # Create this file to avoid what looks like a bug in xdg-desktop-menu @${TOUCH} ${STAGEDIR}${PREFIX}/share/applications/defaults.list (cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ ${PYSETUP} install --prefix ${PREFIX} \ --staging-root ${STAGEDIR}${PREFIX}) @${RM} ${STAGEDIR}${PREFIX}/bin/calibre-uninstall \ ${STAGEDIR}${PREFIX}/share/applications/defaults.list @${RMDIR} ${STAGEDIR}${PREFIX}/share/desktop-directories @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/calibre/calibre/plugins/* update-recent-uas: patch @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \ ${PYSETUP} recent_uas) ${CP} ${BUILD_WRKSRC}/resources/user-agent-data.json ${FILESDIR} .include diff --git a/devel/py-cytoolz/Makefile b/devel/py-cytoolz/Makefile index e56c4ae4639e..edab68fd87e1 100644 --- a/devel/py-cytoolz/Makefile +++ b/devel/py-cytoolz/Makefile @@ -1,28 +1,29 @@ PORTNAME= cytoolz DISTVERSION= 0.12.3 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Cython implementation of Toolz: High performance functional utilities WWW= https://github.com/pytoolz/cytoolz LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}toolz>=0.8.0:devel/py-toolz@${PY_FLAVOR} USES= python USE_PYTHON= pep517 cython autoplist pytest TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/cytoolz/tests # 3 tests fail, see https://github.com/pytoolz/cytoolz/issues/200 post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*.so .include diff --git a/devel/py-nbclassic/Makefile b/devel/py-nbclassic/Makefile index 612177b2d7f3..dd9d64f5bae5 100644 --- a/devel/py-nbclassic/Makefile +++ b/devel/py-nbclassic/Makefile @@ -1,34 +1,35 @@ PORTNAME= nbclassic PORTVERSION= 1.1.0 CATEGORIES= devel python MASTER_SITES= PYPI \ https://github.com/jupyter/nbclassic/releases/download/v${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Jupyter Notebook as a Jupyter Server Extension WWW= https://github.com/jupyter/nbclassic LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jupyter-packaging>=0.9<2:devel/py-jupyter-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jupyter-server>=1.17.0:devel/py-jupyter-server@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipykernel>=0:devel/py-ipykernel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ipython_genutils>=0:devel/py-ipython_genutils@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nest-asyncio>=1.5:devel/py-nest-asyncio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}notebook-shim>=0.2.3:devel/py-notebook-shim@${PY_FLAVOR} USES= python USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes OPTIONS_DEFINE= DESKTOP DESKTOP_DESC= Install desktop entry file DESKTOP_USES= desktop-file-utils DESKTOP_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-setup.cfg .include diff --git a/devel/py-preshed/Makefile b/devel/py-preshed/Makefile index f5afd7399208..859c82bba8cb 100644 --- a/devel/py-preshed/Makefile +++ b/devel/py-preshed/Makefile @@ -1,31 +1,32 @@ PORTNAME= preshed DISTVERSION= 4.0.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Cython hash table WWW= https://github.com/explosion/preshed LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cymem>=2.0.2<2.1.0:devel/py-cymem@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}murmurhash>=0.28.0<1.1.0:devel/py-murmurhash@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} \ + ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PY_DEPENDS} USES= python USE_PYTHON= pep517 cython autoplist pytest TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/preshed/*.so do-test: @cd ${WRKDIR} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest --pyargs preshed .include diff --git a/devel/py-qt5-pyqt/Makefile b/devel/py-qt5-pyqt/Makefile index e27bcfa12400..c4736308455e 100644 --- a/devel/py-qt5-pyqt/Makefile +++ b/devel/py-qt5-pyqt/Makefile @@ -1,49 +1,50 @@ PORTNAME= pyqt PORTVERSION= ${PYQT_VERSION} PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITES_PYQT} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQT_DISTNAME} MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt5 toolkit, QtCore module WWW= https://riverbankcomputing.com/software/pyqt PYQT_DIST= yes LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2-qt5 \ libdbus-1.so:devel/dbus -BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR} USES= gl pkgconfig python pyqt:5 qt:5 USE_GL= gl USE_PYTHON= concurrent flavors py3kplist USE_PYQT= qtbuilder sip pysip USE_QT= connectivity core dbus declarative designer gui help imageformats location \ multimedia network opengl printsupport quick3d remoteobjects \ sensors serialport speech sql svg testlib webchannel websockets \ widgets x11extras xml xmlpatterns \ buildtools:build qmake:build SIP_ARGS= --disable QtWebKit --disable QtWebKitWidgets PORTSCOUT?= limit:^${_QT_VERSION:R} post-extract: ${RM} -r ${WRKSRC}/pyuic/uic/port_v2 post-install: ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ -f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt5 \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5 ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt5 \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5 @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-qt5-qscintilla2/Makefile b/devel/py-qt5-qscintilla2/Makefile index 99daa7065ab2..495b9395ae11 100644 --- a/devel/py-qt5-qscintilla2/Makefile +++ b/devel/py-qt5-qscintilla2/Makefile @@ -1,42 +1,43 @@ PORTNAME= qscintilla2 PORTVERSION= ${QSCI2_VERSION} PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITES_QSCI2} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt5- DISTNAME= ${QSCI2_DISTNAME} MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for QScintilla2 (PyQt5), QSci module WWW= https://riverbankcomputing.com/software/pyqt +BUILD_DEPENDS= ${PY_SETUPTOOLS} LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2-qt5 DISTINFO_FILE= ${.CURDIR:H}/qscintilla2-qt5/distinfo DESTDIRNAME= INSTALL_ROOT USES= python pyqt:5 gl qt:5 USE_GL= gl USE_PYQT= pyqt5 sip:build qtbuilder USE_PYTHON= concurrent flavors py3kplist USE_QT= core gui printsupport widgets buildtools:build qmake:build OPTIONS_DEFINE= DEBUG DEBUG_CONFIGURE_ON= --debug --trace WRKSRC= ${WRKDIR}/${DISTNAME}/Python ALL_TARGET= #empty post-extract: ${CP} ${WRKSRC}/pyproject-qt5.toml ${WRKSRC}/pyproject.toml do-build: (cd ${WRKSRC} ; sip-build-${PYTHON_VER} --qmake ${QMAKE} --verbose --no-make --build-dir build ; ${MAKE} -C ./build ) do-install: (cd ${WRKSRC} ; ${MAKE} -C ./build install INSTALL_ROOT=${STAGEDIR} ) post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5/Qsci.abi3.so .include diff --git a/devel/py-qt6-pyqt/Makefile b/devel/py-qt6-pyqt/Makefile index 4df559c4e5e9..08657ba77fcd 100644 --- a/devel/py-qt6-pyqt/Makefile +++ b/devel/py-qt6-pyqt/Makefile @@ -1,43 +1,44 @@ PORTNAME= pyqt DISTVERSION= ${PYQT_VERSION} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITES_PYQT} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQT_DISTNAME} MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt6 toolkit WWW= https://riverbankcomputing.com/software/pyqt PYQT_DIST= yes LIB_DEPENDS= libdbus-1.so:devel/dbus \ libqscintilla2_qt6.so:devel/qscintilla2-qt6 -BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} USES= gl pkgconfig python pyqt:6 qt:6 USE_GL= opengl USE_PYTHON= concurrent flavors USE_PYQT= pysip qtbuilder sip USE_QT= base connectivity declarative imageformats multimedia \ pdf positioning quick3d remoteobjects sensors serialport \ shadertools speech svg tools translations webchannel \ websockets PORTSCOUT?= limit:^${_QT_VERSION:R} post-extract: ${RM} -r ${WRKSRC}/pyuic/uic/port_v2 post-install: ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ -f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-qt6-qscintilla2/Makefile b/devel/py-qt6-qscintilla2/Makefile index 528c3291494a..83db0bac229e 100644 --- a/devel/py-qt6-qscintilla2/Makefile +++ b/devel/py-qt6-qscintilla2/Makefile @@ -1,46 +1,47 @@ PORTNAME= qscintilla2 PORTVERSION= ${QSCI2_VERSION} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITES_QSCI2} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt6- DISTNAME= ${QSCI2_DISTNAME} MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for QScintilla2 (PyQt6), QSci module WWW= https://riverbankcomputing.com/software/pyqt \ https://www.riverbankcomputing.com/software/qscintilla LICENSE= GPLv3 +BUILD_DEPENDS= ${PY_SETUPTOOLS} LIB_DEPENDS= libqscintilla2_qt6.so:devel/qscintilla2-qt6 USES= python pyqt:6 gl qt:6 USE_GL= gl USE_LOCALE= C.UTF-8 USE_PYQT= pyqt6 sip:build qtbuilder USE_PYTHON= concurrent flavors USE_QT= base SIP_ARGS= --qmake ${QMAKE} --verbose --build-dir build ALL_TARGET= #empty DESTDIRNAME= INSTALL_ROOT DISTINFO_FILE= ${.CURDIR:H}/qscintilla2-qt6/distinfo WRKSRC= ${WRKDIR}/${DISTNAME}/Python OPTIONS_DEFINE= DEBUG DEBUG_VARS= SIP_ARGS+=--debug --tracing post-extract: ${CP} ${WRKSRC}/pyproject-qt6.toml ${WRKSRC}/pyproject.toml do-build: (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${SIP} ${SIP_ARGS} ; ${SETENV} ${MAKE_ENV} ${MAKE} -C ./build ) do-install: (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} -C ./build install INSTALL_ROOT=${STAGEDIR} ) post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6/Qsci.abi3.so .include diff --git a/finance/py-financedatabase/Makefile b/finance/py-financedatabase/Makefile index 76f4eeace36c..980126c3e63d 100644 --- a/finance/py-financedatabase/Makefile +++ b/finance/py-financedatabase/Makefile @@ -1,29 +1,30 @@ PORTNAME= financedatabase DISTVERSION= 2.2.2 CATEGORIES= finance python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices WWW= https://github.com/JerBouma/FinanceDatabase LICENSE= MIT -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR} USES= python USE_PYTHON= pep517 autoplist NO_ARCH= yes TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} do-test: @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py .include diff --git a/graphics/opencolorio/Makefile b/graphics/opencolorio/Makefile index a26bf39d5f4b..33cde277675e 100644 --- a/graphics/opencolorio/Makefile +++ b/graphics/opencolorio/Makefile @@ -1,118 +1,119 @@ PORTNAME= opencolorio DISTVERSIONPREFIX= v DISTVERSION= 2.3.2 # PORTREVISION must be set with ?= so as not to stomp over # py-opencolorio's PORTREVISION. # Also, just to be on the safe side, when resetting, # best keep PORTREVISION?= 0. PORTREVISION?= 1 CATEGORIES= graphics multimedia MAINTAINER?= FreeBSD@Shaneware.biz COMMENT?= Complete color management solution WWW= https://www.opencolorio.org LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libexpat.so:textproc/expat2 \ libImath.so:math/Imath \ libpystring.so:devel/pystring \ libyaml-cpp.so:devel/yaml-cpp USES= alias cmake compiler:c++14-lang localbase:ldflags \ pkgconfig minizip:ng USE_GITHUB= yes GH_ACCOUNT= AcademySoftwareFoundation GH_PROJECT= OpenColorIO #GH_TUPLE+= madler:zlib:v1.2.13:zlib/ext/dist/zlib CMAKE_OFF= OCIO_BUILD_JAVA OCIO_BUILD_JNIGLUE OCIO_BUILD_NUKE \ OCIO_BUILD_TESTS OCIO_BUILD_GPU_TESTS PLIST_SUB= SHL3=${PORTVERSION} SHL2=${PORTVERSION:R} OPTIONS_DEFINE= DOCS OPTIONS_DEFAULT= DOCS OPTIONS_SUB= yes DOCS_BUILD_DEPENDS= doxygen>0:devel/doxygen DOCS_CMAKE_BOOL= OCIO_BUILD_DOCS .include .if (defined(MACHINE_CPU) && ${MACHINE_CPU:Msse2}) CMAKE_ON+= OCIO_USE_SSE2 .else CMAKE_OFF+= OCIO_USE_SSE2 .endif .if ${PORT_OPTIONS:MDOCS} # master and pymodule use these # DOCS needs to be enabled for python docstrings to be generated # py module can still be used without -BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}breathe>=0:devel/py-breathe@${PY_FLAVOR} \ +BUILD_DEPENDS+= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}breathe>=0:devel/py-breathe@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}recommonmark>=0:textproc/py-recommonmark@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx_press_theme>=0:textproc/py-sphinx_press_theme@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx-tabs>0:textproc/py-sphinx-tabs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}testresources>=0:devel/py-testresources@${PY_FLAVOR} .endif .if defined(OCIO_SLAVE) && ${OCIO_SLAVE} == tools LIB_DEPENDS+= liblcms2.so:graphics/lcms2 \ libOpenImageIO.so:graphics/openimageio \ libOpenEXR.so:graphics/openexr USES+= gl xorg USE_GL= gl glu glut glew opengl USE_XORG= xi xmu CMAKE_ARGS+= -DCMAKE_CXX_STANDARD=14 CMAKE_ON+= OCIO_BUILD_APPS USE_EXTERNAL_LCMS CMAKE_OFF+= BUILD_SHARED_LIBS OCIO_BUILD_DOCS \ OCIO_BUILD_PYGLUE OCIO_BUILD_PYTHON LDFLAGS+= -lOpenImageIO_Util PLIST= ${PKGDIR}/pkg-plist-tools .elif defined(OCIO_SLAVE) && ${OCIO_SLAVE} == pymodule BUILD_DEPENDS+= pybind11>0:devel/pybind11 LIB_DEPENDS+= libOpenColorIO.so:graphics/opencolorio USES+= python USE_PYTHON= concurrent flavors CMAKE_ARGS+= -DOCIO_PYTHON_VERSION=${PYTHON_VER} CMAKE_ON+= OCIO_BUILD_PYTHON CMAKE_OFF+= OCIO_BUILD_APPS BUILD_SHARED_LIBS OCIO_BUILD_DOCS \ OCIO_BUILD_TESTS OCIO_BUILD_GPU_TESTS LDFLAGS+= -lOpenColorIO PLIST= ${PKGDIR}/pkg-plist-pyglue # concurrent allows docs to not collide with master port .else # master port # we enable pyglue in master port. This makes the python module # available when generating docs, we leave the python header in place # but only install the python module with the py-opencolorio port # this makes it easier to allow multiple python versions installed BUILD_DEPENDS+= pybind11>0:devel/pybind11 USES+= python:build xorg USE_LDCONFIG= yes USE_XORG= xi xmu CMAKE_ARGS+= -DOCIO_PYTHON_VERSION=${PYTHON_VER} CMAKE_ON+= BUILD_SHARED_LIBS OCIO_BUILD_PYGLUE OCIO_BUILD_PYTHON CMAKE_OFF+= OCIO_BUILD_APPS PLIST= ${PKGDIR}/pkg-plist ${PKGDIR}/pkg-plist-docs .endif post-install: @cd ${STAGEDIR}${PREFIX} && ${RM} -r share/ocio .if defined(OCIO_SLAVE) @cd ${STAGEDIR}${PREFIX} && ${RM} -r include lib/cmake lib/libOpenColorIO*.a libdata share/OpenColorIO .else @cd ${STAGEDIR}${PREFIX} && ${RM} -r lib/python* .endif post-install-DOCS-on: @cd ${STAGEDIR}${PREFIX}/share/doc && ${MV} OpenColorIO ${PKGNAMEPREFIX}${PORTNAME} .include diff --git a/graphics/py-ManimPango/Makefile b/graphics/py-ManimPango/Makefile index 1c4880d121fe..d55f2d3082e7 100644 --- a/graphics/py-ManimPango/Makefile +++ b/graphics/py-ManimPango/Makefile @@ -1,28 +1,29 @@ PORTNAME= ManimPango DISTVERSION= 0.5.0 CATEGORIES= graphics MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Bindings for Pango for use with Manim WWW= https://manimpango.manim.community/en/latest/ LICENSE= MIT -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz USES= gettext-runtime gnome pkgconfig python USE_PYTHON= pep517 cython autoplist pytest # tests fail to import manimpango, see https://github.com/ManimCommunity/ManimPango/issues/99 USE_GNOME= cairo glib20 pango TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/tests post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/manimpango/*${PYTHON_EXT_SUFFIX}.so .include diff --git a/graphics/py-python-poppler-qt5/Makefile b/graphics/py-python-poppler-qt5/Makefile index 6de67c1f9bed..739af06edd14 100644 --- a/graphics/py-python-poppler-qt5/Makefile +++ b/graphics/py-python-poppler-qt5/Makefile @@ -1,36 +1,37 @@ PORTNAME= python-poppler-qt5 DISTVERSIONPREFIX= v DISTVERSION= 21.3.0 PORTREVISION= 3 CATEGORIES= graphics python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= m.ne@gmx.net COMMENT= Python bindings for the Poppler-Qt PDF rendering library WWW= https://pypi.org/project/python-poppler-qt5/ LICENSE= LGPL21 LGPL3 LICENSE_COMB= dual -BUILD_DEPENDS= qmake-qt5:devel/qt5-qmake +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + qmake-qt5:devel/qt5-qmake LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 USES= compiler:c++17-lang gl pkgconfig pyqt:5 python qt:5 USE_GITHUB= yes GH_ACCOUNT= frescobaldi USE_GL= gl USE_PYQT= pyqt5 USE_PYTHON= autoplist pep517 USE_QT= core gui xml PEP517_BUILD_CONFIG_SETTING= -C--build-dir=build \ -C--jobs=${MAKE_JOBS_NUMBER} -C--qmake=${QMAKE} \ -C--qmake-setting='CONFIG += c++17' \ -C--qmake-setting='QMAKE_CXXFLAGS += ${CXXFLAGS}' \ -C--qmake-setting='QMAKE_LFLAGS += ${LDFLAGS}' \ -C--verbose post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5${PYTHON_EXT_SUFFIX}.so .include diff --git a/graphics/py-qt6-3d/Makefile b/graphics/py-qt6-3d/Makefile index 506ec253c2c1..7ae2d8e90d3b 100644 --- a/graphics/py-qt6-3d/Makefile +++ b/graphics/py-qt6-3d/Makefile @@ -1,28 +1,30 @@ PORTNAME= 3d DISTVERSION= ${PYQT3D_VERSION} CATEGORIES= graphics python MASTER_SITES= ${MASTER_SITES_PYQT3D} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQT3D_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt6 3D framework WWW= https://www.riverbankcomputing.com/software/pyqt3d/ +BUILD_DEPENDS= ${PY_SETUPTOOLS} + USES= gl pyqt:6 python qt:6 USE_GL= opengl USE_PYQT= sip:build pyqt6 qtbuilder:build USE_PYTHON= concurrent flavors USE_QT= 3d base PLIST_SUB= PYQT3D_VERSION=${DISTVERSION} \ PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER} \ PYTHON_MAJOR_VER_regex=[[:<:]]${PYTHON_MAJOR_VER}[[:>:]] post-install: @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include diff --git a/graphics/qgis-ltr/Makefile b/graphics/qgis-ltr/Makefile index f8208cb648fd..2137504d77f6 100644 --- a/graphics/qgis-ltr/Makefile +++ b/graphics/qgis-ltr/Makefile @@ -1,194 +1,195 @@ PORTNAME= qgis DISTVERSION= 3.34.8 CATEGORIES= graphics geography MASTER_SITES= https://qgis.org/downloads/ PKGNAMESUFFIX= -ltr MAINTAINER= rhurlin@FreeBSD.org COMMENT= Free and Open Source Geographic Information System WWW= https://qgis.org/en/site/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/doc/LICENSE BUILD_DEPENDS= gpsbabel>=1.7.0:astro/gpsbabel \ opencl>=0:devel/opencl \ + ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}cycler>=0.11.0:devel/py-cycler@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}future>=0.18.2:devel/py-future@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}httplib2>=0.20.2:www/py-httplib2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jedi>=0.18.1:devel/py-jedi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markupsafe>=2.1.1:textproc/py-markupsafe@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.4.3:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=4.0.3:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}OWSLib>=0.27.2:graphics/py-OWSLib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pbr>=5.10.0:devel/py-pbr@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip>=22.2.2:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}plotly>=4.14.3:graphics/py-plotly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.13.0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyproj>=3.4.0:graphics/py-pyproj@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytz>=2020.5:devel/py-pytz@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.28.0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=3.7.16:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=5.4.1:devel/py-yaml@${PY_FLAVOR} LIB_DEPENDS= libabsl_log_internal_check_op.so:devel/abseil \ libdraco.so:archivers/draco \ libexiv2.so:graphics/exiv2 \ libexpat.so:textproc/expat2 \ libfreexl.so:textproc/freexl \ libgdal.so:graphics/gdal \ libgeos.so:graphics/geos \ libgsl.so:math/gsl \ libhdf5.so:science/hdf5 \ libmdal.so:math/mdal \ libminizip.so:archivers/minizip \ libnetcdf.so:science/netcdf \ libOpenCL.so:devel/ocl-icd \ libpdalcpp.so:math/pdal \ libproj.so:graphics/proj \ libprotobuf-lite.so:devel/protobuf \ libqjson-qt5.so:devel/qjson \ libqscintilla2_qt5.so:devel/qscintilla2-qt5 \ libqt5keychain.so:security/qtkeychain@qt5 \ libqwt.so:x11-toolkits/qwt6@qt5 \ librttopo.so:devel/librttopo \ libspatialindex.so:devel/spatialindex \ libspatialite.so:databases/spatialite \ libsz.so:science/libaec \ libxerces-c.so:textproc/xerces-c3 \ libzip.so:archivers/libzip \ libzstd.so:archivers/zstd RUN_DEPENDS= astyle:devel/astyle \ opencl>=0:devel/opencl \ ${PYTHON_PKGNAMEPREFIX}black>=22.10:devel/py-black@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cycler>=0.11.0:devel/py-cycler@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Fiona>=1.8.21:graphics/py-fiona@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}future>=0.18.2:devel/py-future@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}gdal>=3.5.2:graphics/py-gdal@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}geojson>=2.3.0:devel/py-geojson@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}geopandas>=0.11.1:graphics/py-geopandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}httplib2>=0.20.2:www/py-httplib2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jedi>=0.18.1:devel/py-jedi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}laspy>=2.5.1:misc/py-laspy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markupsafe>=2.1.1:textproc/py-markupsafe@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.4.3:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=4.0.3:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nbformat>=5.7.0:devel/py-nbformat@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}netCDF4>=1.6.2:science/py-netCDF4@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}networkx>=2.8.8:math/py-networkx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nltk>=3.7:textproc/py-nltk@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}OWSLib>=0.27.2:graphics/py-OWSLib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>=1.5.0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pbr>=5.10.0:devel/py-pbr@${PY_FLAVOR} \ ${PY_PILLOW} \ ${PYTHON_PKGNAMEPREFIX}pip>=22.2.2:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}plotly>=4.14.3:graphics/py-plotly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.9.4:databases/py-psycopg2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.13.0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyproj>=3.4.0:graphics/py-pyproj@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyrsgis>=0.4.1:graphics/py-pyrsgis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytz>=2020.5:devel/py-pytz@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rasterio>=1.3.2:graphics/py-rasterio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.28.0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-image>=0.19.3:graphics/py-scikit-image@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-learn>=1.1.3:science/py-scikit-learn@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}shapely>=1.8.5:devel/py-shapely@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=3.7.16:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}termcolor>=2.1.0:devel/py-termcolor@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xcffib>=0.11.1:x11/py-xcffib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xlrd>=2.0.1:textproc/py-xlrd@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=5.4.1:devel/py-yaml@${PY_FLAVOR} ### Fortran is needed by numpy, GRASS, etc. USES= bison cmake compiler:features desktop-file-utils \ fortran gl gmake gnome iconv pgsql pyqt:5 python qca qt:5 \ shebangfix sqlite:3 tar:bz2 USE_GL= gl USE_GNOME= libxml2 USE_LDCONFIG= yes USE_PYQT= pyqt5 qscintilla2 pysip sip USE_QT= 3d buildtools:build core concurrent dbus declarative \ designer:build qdoc:build gamepad gui linguist:build location \ multimedia network printsupport qmake:build script serialport \ sql sql-pgsql sql-sqlite3 svg testlib uitools:build \ webengine widgets xml SHEBANG_FILES= src/plugins/grass/scripts/*.py # Python_EXECUTABLE: Use the default version if multiple Pythons are available CMAKE_ARGS+= -DCMAKE_BUILD_TYPE:STRING=Release \ -DHAVE_PGCONFIG=1 \ -DPYRCC_PROGRAM:FILEPATH=${LOCALBASE}/bin/pyrcc5-${PYTHON_VER} \ -DPYUIC_PROGRAM:FILEPATH=${LOCALBASE}/bin/pyuic5-${PYTHON_VER} \ -DPython_EXECUTABLE=${PYTHON_CMD} \ -DQSCI_SIP_DIR:PATH=${PYQT_SIPDIR}/Qsci \ -DQWT_INCLUDE_DIR:PATH=${LOCALBASE}/include/qt5/qwt6 \ -DQWT_LIBRARY:FILEPATH=${LOCALBASE}/lib/qt5/libqwt.so \ -DQGIS_MANUAL_SUBDIR:PATH=share/man CMAKE_ON= USE_OPENCL WITH_ASTYLE WITH_BINDINGS WITH_COPC \ WITH_CUSTOM_WIDGETS WITH_DRACO WITH_EPT \ WITH_INTERNAL_LAZPERF WITH_POSTGRESQL CMAKE_OFF= ENABLE_TESTS WITH_INTERNAL_MDAL WITH_QTWEBKIT WITH_QWTPOLAR # math/pdal fails in pdal_wrench() with "undefined reference to symbol 'pthread_create@@FBSD_1.0'" #CXXFLAGS+= -pthread CONFLICTS_INSTALL= qgis PLIST_SUB= DISTVERSION=${PORTVERSION} .if !defined(MAINTAINER_MODE) CMAKE_ARGS+= -Wno-dev CMAKE_OFF+= SUPPRESS_QT_WARNINGS .endif OPTIONS_DEFINE= SERVER GRASS OPTIONS_DEFAULT= SERVER GRASS NO_OPTIONS_SORT= yes OPTIONS_SUB= yes GRASS_DESC= Add GRASS GIS to processing tools SERVER_DESC= Enable QGIS server GRASS_BUILD_DEPENDS= grass8:databases/grass8 GRASS_RUN_DEPENDS= ${GRASS_BUILD_DEPENDS} GRASS_CMAKE_BOOL= WITH_GRASS8 SERVER_LIB_DEPENDS= libfcgi.so:www/fcgi SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE .include pre-patch: # Only PostgreSQL Client headers, not Server @${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \ ${WRKSRC}/cmake/FindPostgres.cmake post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/cmake/FindGRASS.cmake # On i386, '-mllvm -inline-threshold=128' does not build under all circumstances # See bugs 242557 and 241687. .if ${OPSYS} == FreeBSD && ${ARCH} == "i386" @${REINPLACE_CMD} -e 's|"-mllvm -inline-threshold=128"|"-O1"|g' \ ${WRKSRC}/src/core/CMakeLists.txt .endif pre-configure: ${MKDIR} ${CONFIGURE_WRKSRC}/bin && ${LN} -s ${PYTHON_CMD} ${CONFIGURE_WRKSRC}/bin/python3 post-install: @${RM} ${STAGEDIR}${DATADIR}/python/pytz/tzfile.py.bak @${FIND} ${STAGEDIR}${LOCALBASE} -name "__pycache__" -delete @${RM} /tmp/srs.db check: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check .include diff --git a/graphics/qgis/Makefile b/graphics/qgis/Makefile index 7fae658d2bf5..c86f0eaabbb9 100644 --- a/graphics/qgis/Makefile +++ b/graphics/qgis/Makefile @@ -1,190 +1,191 @@ PORTNAME= qgis DISTVERSION= 3.38.0 CATEGORIES= graphics geography MASTER_SITES= https://qgis.org/downloads/ MAINTAINER= rhurlin@FreeBSD.org COMMENT= Free and Open Source Geographic Information System WWW= https://qgis.org/en/site/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/doc/LICENSE BUILD_DEPENDS= gpsbabel>=1.7.0:astro/gpsbabel \ opencl>=0:devel/opencl \ + ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}cycler>=0.11.0:devel/py-cycler@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}future>=0.18.2:devel/py-future@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}httplib2>=0.20.2:www/py-httplib2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jedi>=0.18.1:devel/py-jedi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markupsafe>=2.1.1:textproc/py-markupsafe@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.4.3:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=4.0.3:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}OWSLib>=0.27.2:graphics/py-OWSLib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pbr>=5.10.0:devel/py-pbr@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip>=22.2.2:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}plotly>=4.14.3:graphics/py-plotly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.13.0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyproj>=3.4.0:graphics/py-pyproj@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytz>=2020.5:devel/py-pytz@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.28.0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=3.7.16:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=5.4.1:devel/py-yaml@${PY_FLAVOR} LIB_DEPENDS= libabsl_log_internal_check_op.so:devel/abseil \ libdraco.so:archivers/draco \ libexiv2.so:graphics/exiv2 \ libexpat.so:textproc/expat2 \ libfreexl.so:textproc/freexl \ libgdal.so:graphics/gdal \ libgeos.so:graphics/geos \ libgsl.so:math/gsl \ libhdf5.so:science/hdf5 \ libmdal.so:math/mdal \ libminizip.so:archivers/minizip \ libnetcdf.so:science/netcdf \ libOpenCL.so:devel/ocl-icd \ libpdalcpp.so:math/pdal \ libproj.so:graphics/proj \ libprotobuf-lite.so:devel/protobuf \ libqjson-qt5.so:devel/qjson \ libqscintilla2_qt5.so:devel/qscintilla2-qt5 \ libqt5keychain.so:security/qtkeychain@qt5 \ libqwt.so:x11-toolkits/qwt6@qt5 \ librttopo.so:devel/librttopo \ libspatialindex.so:devel/spatialindex \ libspatialite.so:databases/spatialite \ libsz.so:science/libaec \ libxerces-c.so:textproc/xerces-c3 \ libzip.so:archivers/libzip \ libzstd.so:archivers/zstd RUN_DEPENDS= astyle:devel/astyle \ opencl>=0:devel/opencl \ ${PYTHON_PKGNAMEPREFIX}black>=22.10:devel/py-black@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cycler>=0.11.0:devel/py-cycler@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Fiona>=1.8.21:graphics/py-fiona@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}future>=0.18.2:devel/py-future@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}gdal>=3.5.2:graphics/py-gdal@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}geojson>=2.3.0:devel/py-geojson@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}geopandas>=0.11.1:graphics/py-geopandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}httplib2>=0.20.2:www/py-httplib2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jedi>=0.18.1:devel/py-jedi@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}laspy>=2.5.1:misc/py-laspy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markupsafe>=2.1.1:textproc/py-markupsafe@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.4.3:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mock>=4.0.3:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nbformat>=5.7.0:devel/py-nbformat@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}netCDF4>=1.6.2:science/py-netCDF4@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}networkx>=2.8.8:math/py-networkx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nltk>=3.7:textproc/py-nltk@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}OWSLib>=0.27.2:graphics/py-OWSLib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>=1.5.0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pbr>=5.10.0:devel/py-pbr@${PY_FLAVOR} \ ${PY_PILLOW} \ ${PYTHON_PKGNAMEPREFIX}pip>=22.2.2:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}plotly>=4.14.3:graphics/py-plotly@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.9.4:databases/py-psycopg2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.13.0:textproc/py-pygments@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyproj>=3.4.0:graphics/py-pyproj@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyrsgis>=0.4.1:graphics/py-pyrsgis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytz>=2020.5:devel/py-pytz@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}rasterio>=1.3.2:graphics/py-rasterio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.28.0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-image>=0.19.3:graphics/py-scikit-image@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-learn>=1.1.3:science/py-scikit-learn@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}shapely>=1.8.5:devel/py-shapely@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=3.7.16:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}termcolor>=2.1.0:devel/py-termcolor@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xcffib>=0.11.1:x11/py-xcffib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xlrd>=2.0.1:textproc/py-xlrd@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=5.4.1:devel/py-yaml@${PY_FLAVOR} ### Fortran is needed by numpy, GRASS, etc. USES= bison cmake compiler:features desktop-file-utils \ fortran gl gmake gnome iconv pgsql pyqt:5 python qca qt:5 \ shebangfix sqlite:3 tar:bz2 USE_GL= gl USE_GNOME= libxml2 USE_LDCONFIG= yes USE_PYQT= pyqt5 qscintilla2 pysip sip USE_QT= 3d buildtools:build core concurrent dbus declarative \ designer:build qdoc:build gamepad gui linguist:build location \ multimedia network printsupport qmake:build script serialport \ sql sql-pgsql sql-sqlite3 svg testlib uitools:build \ webengine widgets xml SHEBANG_FILES= src/plugins/grass/scripts/*.py # Python_EXECUTABLE: Use the default version if multiple Pythons are available CMAKE_ARGS+= -DCMAKE_BUILD_TYPE:STRING=Release \ -DHAVE_PGCONFIG=1 \ -DPYRCC_PROGRAM:FILEPATH=${LOCALBASE}/bin/pyrcc5-${PYTHON_VER} \ -DPYUIC_PROGRAM:FILEPATH=${LOCALBASE}/bin/pyuic5-${PYTHON_VER} \ -DPython_EXECUTABLE=${PYTHON_CMD} \ -DQSCI_SIP_DIR:PATH=${PYQT_SIPDIR}/Qsci \ -DQWT_INCLUDE_DIR:PATH=${LOCALBASE}/include/qt5/qwt6 \ -DQWT_LIBRARY:FILEPATH=${LOCALBASE}/lib/qt5/libqwt.so \ -DQGIS_MANUAL_SUBDIR:PATH=share/man CMAKE_ON= USE_OPENCL WITH_ASTYLE WITH_BINDINGS WITH_COPC \ WITH_CUSTOM_WIDGETS WITH_DRACO WITH_EPT \ WITH_INTERNAL_LAZPERF WITH_POSTGRESQL CMAKE_OFF= ENABLE_TESTS WITH_INTERNAL_MDAL WITH_QTWEBKIT WITH_QWTPOLAR CONFLICTS_INSTALL= qgis-ltr PLIST_SUB= DISTVERSION=${PORTVERSION} .if !defined(MAINTAINER_MODE) CMAKE_ARGS+= -Wno-dev CMAKE_OFF+= SUPPRESS_QT_WARNINGS .endif OPTIONS_DEFINE= SERVER GRASS OPTIONS_DEFAULT= SERVER GRASS NO_OPTIONS_SORT= yes OPTIONS_SUB= yes GRASS_DESC= Add GRASS GIS to processing tools SERVER_DESC= Enable QGIS server GRASS_BUILD_DEPENDS= grass8:databases/grass8 GRASS_RUN_DEPENDS= ${GRASS_BUILD_DEPENDS} GRASS_CMAKE_BOOL= WITH_GRASS8 SERVER_LIB_DEPENDS= libfcgi.so:www/fcgi SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE .include pre-patch: # Only PostgreSQL Client headers, not Server @${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \ ${WRKSRC}/cmake/FindPostgres.cmake post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/cmake/FindGRASS.cmake # On i386, '-mllvm -inline-threshold=128' does not build under all circumstances # See bugs 242557 and 241687. .if ${OPSYS} == FreeBSD && ${ARCH} == "i386" @${REINPLACE_CMD} -e 's|"-mllvm -inline-threshold=128"|"-O1"|g' \ ${WRKSRC}/src/core/CMakeLists.txt .endif pre-configure: ${MKDIR} ${CONFIGURE_WRKSRC}/bin && ${LN} -s ${PYTHON_CMD} ${CONFIGURE_WRKSRC}/bin/python3 post-install: @${RM} ${STAGEDIR}${DATADIR}/python/pytz/tzfile.py.bak @${FIND} ${STAGEDIR}${LOCALBASE} -name "__pycache__" -delete @${RM} /tmp/srs.db check: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check .include diff --git a/math/py-CyLP/Makefile b/math/py-CyLP/Makefile index 7765e5bb0c41..672bf48289a1 100644 --- a/math/py-CyLP/Makefile +++ b/math/py-CyLP/Makefile @@ -1,44 +1,45 @@ PORTNAME= CyLP DISTVERSIONPREFIX= v DISTVERSION= 0.92.2 PORTREVISION= 1 CATEGORIES= math python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python interface to CLP, CBC, and CGL to solve LPs and MIPs WWW= https://github.com/coin-or/CyLP LICENSE= CPL10 LICENSE_NAME= Common Public License Version 1.0 LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= auto-accept dist-mirror dist-sell pkg-mirror pkg-sell BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3 \ + ${PY_SETUPTOOLS} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libblas.so:math/blas \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libClp.so:math/clp \ libCoinUtils.so:math/coinutils \ liblapack.so:math/lapack \ libOsi.so:math/osi RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=0.10.0:science/py-scipy@${PY_FLAVOR} USES= compiler:c++11-lang python USE_PYTHON= pep517 cython autoplist pytest USE_GITHUB= yes GH_ACCOUNT= coin-or MAKE_ENV= COIN_INSTALL_DIR=${LOCALBASE} TEST_WRKSRC= ${WRKSRC}/cylp TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cylp/cy/Cy*.so .include diff --git a/math/py-POT/Makefile b/math/py-POT/Makefile index 72a3080b785c..49364d284c55 100644 --- a/math/py-POT/Makefile +++ b/math/py-POT/Makefile @@ -1,29 +1,29 @@ PORTNAME= POT DISTVERSION= 0.9.3 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python Optimal Transport Library WWW= https://pythonot.github.io/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${SETUPTOOLS} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=1.6:science/py-scipy@${PY_FLAVOR} USES= python USE_PYTHON= pep517 cython autoplist pytest # expects newer pytest than 7.4.4: AttributeError: module pytest has no attribute skip_backend TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/test post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ot/lp/emd_wrap${PYTHON_EXT_SUFFIX}.so .include diff --git a/math/py-hmmlearn/Makefile b/math/py-hmmlearn/Makefile index 8b021d5967ae..0d0269ff7fd0 100644 --- a/math/py-hmmlearn/Makefile +++ b/math/py-hmmlearn/Makefile @@ -1,37 +1,38 @@ PORTNAME= hmmlearn DISTVERSION= 0.3.0 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jwb@FreeBSD.org COMMENT= Unsupervised learning and inference of Hidden Markov Models WWW= https://github.com/hmmlearn/hmmlearn LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= wheel-${PYTHON_VER}:devel/py-wheel@${PY_FLAVOR} \ + ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=0.19:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.16:science/py-scikit-learn@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=0.19:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.16:science/py-scikit-learn@${PY_FLAVOR} USES= python USE_PYTHON= autoplist pep517 pytest post-stage: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hmmlearn/_hmmc.cpython-${PYTHON_SUFFIX}.so # 2023-12-29: Tests currently fail due to known upstream issues do-test: # setup.py builds directly to prefix by default, so we need to build # again within the project for pytest to work @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} setup.py develop) (cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYTHON_VER} --capture=no) .include diff --git a/math/py-or-tools/Makefile b/math/py-or-tools/Makefile index 42577399a8bc..701a29736dcb 100644 --- a/math/py-or-tools/Makefile +++ b/math/py-or-tools/Makefile @@ -1,87 +1,88 @@ PORTNAME= or-tools DISTVERSIONPREFIX= v DISTVERSION= 9.5 PORTREVISION= 9 CATEGORIES= math PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Google's Operations Research tools (Python binding) WWW= https://github.com/google/or-tools LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv7= SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32 BROKEN_i386= SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32 # see https://github.com/google/or-tools/issues/2130 PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}absl-py>0:devel/py-absl-py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}protobuf>0:devel/py-protobuf@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} \ + ${PY_SETUPTOOLS} \ pybind11>0:devel/pybind11 \ protoc-gen-mypy:devel/py-mypy-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR} \ swig:devel/swig LIB_DEPENDS= libabsl_base.so:devel/abseil \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libOsiClp.so:math/clp \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libprotobuf.so:devel/protobuf \ libre2.so:devel/re2 RUN_DEPENDS= ${PY_DEPENDS} USES= blaslapack cmake:insource compiler:c++17-lang eigen:3 pkgconfig python USE_PYTHON= flavors pytest # tests fail, see https://github.com/google/or-tools/issues/3464 USE_GITHUB= yes GH_ACCOUNT= google CMAKE_OFF= BUILD_DEPS BUILD_pybind11 INSTALL_BUILD_DEPS BUILD_TESTING BUILD_EXAMPLES CMAKE_ON= BUILD_PYTHON CMAKE_ARGS= -DSWIG_EXECUTABLE=${LOCALBASE}/bin/swig -DFREEBSD_PYTHON_VER=${PYTHON_VER} CONFIGURE_ENV= UNIX_CBC_DIR=${LOCALBASE} UNIX_CLP_DIR=${LOCALBASE} CXXFLAGS+= -DABSL_LEGACY_THREAD_ANNOTATIONS BUILD_ENV= UNIX_CBC_DIR=${LOCALBASE} UNIX_CLP_DIR=${LOCALBASE} TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} OPTIONS_DEFINE= SCIP SCIP_DESC= Use the SCIP solver # SCIP package isn't built because of licensing restrictions SCIP_CMAKE_BOOL= USE_SCIP SCIP_LIB_DEPENDS= libscip.so:math/SCIP post-patch: @${REINPLACE_CMD} -e '/absl::container/s,^,#,' \ ${WRKSRC}/ortools/constraint_solver/CMakeLists.txt \ ${WRKSRC}/ortools/glop/CMakeLists.txt \ ${WRKSRC}/ortools/linear_solver/CMakeLists.txt \ ${WRKSRC}/ortools/sat/CMakeLists.txt do-install: # by default cmake installs the whole or-tools project without the python part, so extract the wheel and install python files manually here ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} && \ unzip ${BUILD_WRKSRC}/python/dist/ortools-${DISTVERSION}*.whl && \ ${RM} -rf ortools-*.dist-info ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name "*.so" -o -name "*.so.*" | ${XARGS} ${STRIP_CMD} run-examples: # one of the examples fail: https://github.com/google/or-tools/issues/3463 .for e in arc_flow_cutting_stock_sat.py bus_driver_scheduling_sat.py cover_rectangle_sat.py cvrptw_plot.py qubo_sat.py # list is from examples/python/CMakeLists.txt @cd ${WRKSRC}/examples/python && \ ${ECHO} "==> Running ${PORTNAME} test ${e} ..." && \ ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${e} && \ ${ECHO} "... test ${e} succeeded" .endfor .include diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile index d4c28e48505c..7ec1e06209a3 100644 --- a/misc/pytorch/Makefile +++ b/misc/pytorch/Makefile @@ -1,81 +1,82 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.3.1 PORTREVISION= 1 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= Tensors and dynamic neural networks in Python (C++ library) WWW= https://pytorch.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= compilation fails: error: use of undeclared identifier 'AVX2' BUILD_DEPENDS= gmake:devel/gmake \ ${LOCALBASE}/include/fxdiv.h:devel/fxdiv \ ${PY_SETUPTOOLS} LIB_DEPENDS= libabsl_base.so:devel/abseil \ libblis.so:math/blis \ libopenblas.so:math/openblas \ libmpi_cxx.so:net/openmpi4 \ libonnx.so:misc/onnx \ libpthreadpool.so:devel/pthreadpool \ libprotobuf.so:devel/protobuf \ libsleef.so:math/sleef USES= compiler:c++17-lang cmake localbase:ldflags python # requires python even with PYTHON=off CMAKE_OFF= BUILD_CUSTOM_PROTOBUF USE_CUDA USE_ROCM USE_NNPACK USE_QNNPACK USE_PYTORCH_QNNPACK \ USE_FBGEMM # workaround recommended by the upstream here: https://github.com/pytorch/pytorch/issues/28337 CMAKE_ON= USE_SYSTEM_PYBIND11 \ USE_SYSTEM_SLEEF \ USE_SYSTEM_ONNX # see other USE_SYSTEM_xx in CMakeLists.txt CMAKE_ON+= ONNX_USE_LITE_PROTO # workaround for the protobuf-related failure described here: https://github.com/onnx/optimizer/issues/38 CMAKE_ARGS= -DPSIMD_SOURCE_DIR=${WRKSRC}/third_party/psimd \ -DPYTHON_EXECUTABLE=${PYTHON_CMD} MAKE_ENV= USE_NINJA=no # ninja breaks for some reason LDFLAGS+= -lexecinfo \ -pthread BINARY_ALIAS= make=${GMAKE} git=true OPTIONS_DEFINE= PYTHON # PYTHON only provides python support for the py-PyTorch port - it's not a python binding OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_CMAKE_BOOL= BUILD_PYTHON PYTHON_PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \ + ${PY_SETUPTOOLS} \ pybind11>0:devel/pybind11 PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS} .include .if ${ARCH} == "amd64" PLIST_SUB+= AMD64="" .else PLIST_SUB+= AMD64="@comment " .endif post-patch: # replace malloc.h -> stdlib.h in many places @cd ${WRKSRC} && for f in $$(${GREP} -rl "include " * | ${GREP} -E "\.(c|cpp|h|hpp)$$"); do \ ${REINPLACE_CMD} -i'' -E "s|include |include |" $$f; \ done # remove bundled fmt @${RM} -r ${WRKSRC}/third_party/fmt post-install: # functorch.so is installed back into the source directory, see https://github.com/pytorch/pytorch/issues/91524 @${RM} $$(${FIND} ${STAGEDIR} -name functorch.so) # https://github.com/pytorch/pytorch/issues/24417 @${FIND} ${STAGEDIR} -type d -empty -delete .include diff --git a/multimedia/gpodder/Makefile b/multimedia/gpodder/Makefile index 91d484ef5137..2de2b9eef096 100644 --- a/multimedia/gpodder/Makefile +++ b/multimedia/gpodder/Makefile @@ -1,49 +1,50 @@ PORTNAME= gpodder DISTVERSION= 3.11.4 PORTREVISION= 1 CATEGORIES= multimedia python MAINTAINER= rm@FreeBSD.org COMMENT= Media aggregator and podcast client WWW= https://gpodder.github.io/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= intltool-extract:textproc/intltool \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + intltool-extract:textproc/intltool \ help2man:misc/help2man RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mygpoclient>=1.7:devel/py-mygpoclient@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}podcastparser>=0.6.0:devel/py-podcastparser@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mutagen>=0:audio/py-mutagen@${PY_FLAVOR} \ yt-dlp:www/yt-dlp \ ${PYTHON_PKGNAMEPREFIX}eyed3>=0:audio/py-eyed3@${PY_FLAVOR} USES= gettext gmake gnome python shebangfix USE_GITHUB= yes OPTIONS_DEFINE= GTK3 OPTIONS_DEFAULT= GTK3 OPTIONS_SUB= yes OPTIONS_EXCLUDE= NLS ALL_TARGET= messages MAKE_ENV= PYTHON=${PYTHON_CMD} MAKEFILE= makefile NO_ARCH= yes SHEBANG_FILES= src/gpodder/*.py PLIST_SUB+= PORTVERSION=${PORTVERSION} GTK3_VARS= MAKE_ENV+=GPODDER_INSTALL_UIS="cli gtk" GTK3_RUN_DEPENDS+= xdg-open:devel/xdg-utils GTK3_USE= GNOME=pygobject3 .if empty(GTK3) MAKE_ENV+= GPODDER_INSTALL_UIS="cli" .endif .include diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile index bf83478e3f85..79eb2a44376f 100644 --- a/multimedia/mythtv/Makefile +++ b/multimedia/mythtv/Makefile @@ -1,249 +1,250 @@ PORTNAME= mythtv DISTVERSIONPREFIX= v DISTVERSION= 34.0 PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= multimedia MAINTAINER= ahicks@p-o.co.uk COMMENT= Homebrew PVR project WWW= https://www.mythtv.org/ LICENSE= GPLv2+ ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc powerpc64 powerpc64le .if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment .endif LIB_DEPENDS= liblzo2.so:archivers/lzo2 \ libmp3lame.so:audio/lame \ libsamplerate.so:audio/libsamplerate \ libtag.so:audio/taglib \ libexiv2.so:graphics/exiv2 \ libva.so:multimedia/libva \ libbluray.so:multimedia/libbluray \ libass.so:multimedia/libass \ libfftw3_threads.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libfreetype.so:print/freetype2 \ libxml2.so:textproc/libxml2 \ libdav1d.so:multimedia/dav1d \ libaom.so:multimedia/aom \ libdrm.so:graphics/libdrm \ libpulse.so:audio/pulseaudio \ libjack.so:audio/jack \ libSoundTouch.so:audio/soundtouch \ libasound.so:audio/alsa-lib \ libsndio.so:audio/sndio \ libgnutls.so:security/gnutls \ libzip.so:archivers/libzip \ libexpat.so:textproc/expat2 BUILD_DEPENDS= yasm:devel/yasm \ ${LOCALBASE}/include/linux/input.h:devel/evdev-proto USES= compiler:c++17-lang gmake gl iconv libtool pkgconfig pathfix \ perl5 python qmake:no_env qt:5 shebangfix ssl xorg USE_GITHUB= yes GH_ACCOUNT= MythTV USE_GL= gl USE_LDCONFIG= yes USE_QT= buildtools:build core dbus gui imageformats:run \ linguist:build multimedia network opengl qmake:build script \ sql sql-mysql:run widgets xml USE_PERL5= run build USE_XORG= x11 xv xrandr xxf86vm xinerama xext xcb SHEBANG_FILES= programs/scripts/database/*.pl \ programs/scripts/metadata/Music/mbutils.py HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}" --cxx="${CXX}" \ --libxml2-path="${LOCALBASE}/include/libxml2" \ --disable-audio-alsa \ --disable-qtwebkit CONFIGURE_ENV= QMAKESPEC="${QMAKESPEC}" MOC="${MOC}" \ QTDIR="${PREFIX}" PKG_CONFIG_PATH="${LOCALBASE}/libdata/pkgconfig" MAKE_ENV= QTDIR="${PREFIX}" \ QMAKESPEC="${QMAKESPEC}" NOPRECIOUSMAKEVARS= # don't override ARCH in ffmpeg makefiles DESTDIRNAME= INSTALL_ROOT CFLAGS_powerpc= -Wno-error=int-conversion CPPFLAGS+= ${QTCPPFLAGS} LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS_aarch64=-Wl,-z,notext REINPLACE_ARGS= -i "" WRKSRC_SUBDIR= ${PORTNAME} DESKTOP_ENTRIES="MythTV Frontend" "MythTV is a homebrew PVR project" "" \ "mythfrontend" "AudioVideo;Video;" false CONFLICTS_INSTALL= mythtv-frontend RUN_DEPENDS+= tv_check:textproc/p5-xmltv \ wget:ftp/wget USE_RC_SUBR= mythbackend SHEBANG_FILES= programs/scripts/database/*.pl \ programs/scripts/internetcontent/*.py \ programs/scripts/internetcontent/*.pl \ programs/scripts/internetcontent/nv_python_libs/*.py \ programs/scripts/hardwareprofile/*.py \ programs/scripts/metadata/Movie/tmdb3.py \ programs/scripts/metadata/Music/mbutils.py CONFIGURE_ARGS+=--dvb-path="${WRKSRC}/media_tree/include/uapi" \ --enable-v4l2 USERS= mythtv GROUPS= mythtv SUB_FILES= pkg-message OPTIONS_DEFINE= BINDINGS HDHOMERUN JACK LIRC MYSQL PULSEAUDIO VDPAU OPTIONS_DEFAULT= BINDINGS HDHOMERUN VDPAU OPTIONS_SUB= yes BINDINGS_DESC= Perl and Python bindings -BINDINGS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR} \ +BINDINGS_BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${PY_FLAVOR} \ p5-DBI>=0:databases/p5-DBI \ ${DBD_MYSQL} \ p5-Net-UPnP>=0:multimedia/p5-Net-UPnP \ p5-IO-Socket-INET6>=2.51:net/p5-IO-Socket-INET6 \ p5-XML-Simple>=0:textproc/p5-XML-Simple \ p5-HTTP-Request-Params>=0:www/p5-HTTP-Request-Params \ p5-LWP-UserAgent-Determined>=0:www/p5-LWP-UserAgent-Determined BINDINGS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=1.2.2:databases/py-mysqlclient@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests-cache>0:www/py-requests-cache@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}simplejson>=3:devel/py-simplejson@${PY_FLAVOR} \ p5-DBI>=0:databases/p5-DBI \ ${DBD_MYSQL} \ p5-Net-UPnP>=0:multimedia/p5-Net-UPnP \ p5-IO-Socket-INET6>=2.51:net/p5-IO-Socket-INET6 \ p5-XML-Simple>=0:textproc/p5-XML-Simple \ p5-HTTP-Request-Params>=0:www/p5-HTTP-Request-Params \ p5-LWP-UserAgent-Determined>=0:www/p5-LWP-UserAgent-Determined BINDINGS_CONFIGURE_ON= --python="${PYTHON_CMD}" --with-bindings=perl,python BINDINGS_CONFIGURE_OFF= --without-bindings=perl,python BINDINGS_USES= mysql HDHOMERUN_DESC= Native support for HDHomeRun network tuners HDHOMERUN_LIB_DEPENDS= libhdhomerun.so:multimedia/libhdhomerun HDHOMERUN_CONFIGURE_OFF= --disable-hdhomerun JACK_LIB_DEPENDS= libjack.so:audio/jack JACK_CONFIGURE_OFF= --disable-audio-jack LIRC_LIB_DEPENDS= liblirc_client.so:comms/lirc LIRC_CONFIGURE_OFF= --disable-lirc MYSQL_DESC= Install MySQL server in addition to client MYSQL_USES= mysql:client,server MYSQL_USES_OFF= mysql PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CONFIGURE_OFF= --disable-audio-pulseoutput VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau VDPAU_CONFIGURE_OFF= --disable-vdpau LINUXDVB= ${WRKSRC}/media_tree/include/uapi/linux/dvb post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/configure \ ${WRKSRC}/libs/libmythtv/libmythtv.pro \ ${WRKSRC}/bindings/perl/MythTV/Recording.pm \ ${WRKSRC}/programs/mythtranscode/external/replex/Makefile.standalone \ ${WRKSRC}/programs/scripts/database/mythconverg_backup.pl \ ${WRKSRC}/programs/scripts/database/mythconverg_restore.pl \ ${WRKSRC}/programs/mythcommflag/mythcommflag-analyze # Header file from: # https://git.linuxtv.org/media_tree.git/tree/include/uapi/linux/dvb @${MKDIR} ${LINUXDVB} @${CP} ${FILESDIR}/audio.h ${LINUXDVB} @${CP} ${FILESDIR}/ca.h ${LINUXDVB} @${CP} ${FILESDIR}/dmx.h ${LINUXDVB} @${CP} ${FILESDIR}/frontend.h ${LINUXDVB} @${CP} ${FILESDIR}/net.h ${LINUXDVB} @${CP} ${FILESDIR}/osd.h ${LINUXDVB} @${CP} ${FILESDIR}/version.h ${LINUXDVB} @${CP} ${FILESDIR}/video.h ${LINUXDVB} # Linux to BSD from multimedia/libv4l/Makefile @${FIND} ${LINUXDVB} -type f -name "*.h" | \ ${XARGS} -n 1 ${REINPLACE_CMD} \ -e 's|#include |#include |'\ -e 's|__inline__|inline|g' \ -e 's|__u8|uint8_t|g' \ -e 's|__s8|int8_t|g' \ -e 's|__le16|uint16_t|g' \ -e 's|__be16|uint16_t|g' \ -e 's|__u16|uint16_t|g' \ -e 's|__s16|int16_t|g' \ -e 's|__le32|uint32_t|g' \ -e 's|__be32|uint32_t|g' \ -e 's|__u32|uint32_t|g' \ -e 's|__s32|int32_t|g' \ -e 's|__le64|uint64_t|g' \ -e 's|__be64|uint64_t|g' \ -e 's|__u64|uint64_t|g' \ -e 's|__s64|int64_t|g' \ -e 's|uint16_t_to_cpu|letoh16|g' \ -e 's|uint32_t_to_cpu|letoh32|g' \ -e 's|uint64_t_to_cpu|letoh64|g' \ -e 's|error_t|int|g' \ -e 's|"gettext.h"||g' \ -e 's|MSG_MORE|0|g' \ -e 's|EBADR|EFAULT|g' \ -e 's|ENONET|EHOSTDOWN|g' \ -e 's|_IOC_READ|IOC_OUT|g' \ -e 's|_IOC_WRITE|IOC_IN|g' \ -e 's|_IOC_NONE|IOC_VOID|g' \ -e 's|||g' \ -e 's|||g' \ -e 's|||g' \ -e 's|||g' \ -e '/^.*\.*/d' \ -e 's|||g' \ -e 's|||g' \ -e 's|||g' \ -e 's|||g' \ -e 's|||g' \ -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|g' \ -e 's|__user||g' \ ${LINUXDVB}/frontend.h pre-install: @${REINPLACE_CMD} -e '/^CPPFLAGS=/ s#$$# -I${LOCALBASE}/include#' \ ${WRKSRC}/libs/libmythbase/mythconfig.mak post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/mythtv/database ${INSTALL_DATA} ${WRKSRC}/database/mc.sql ${STAGEDIR}${PREFIX}/share/mythtv/database @${FIND} ${STAGEDIR}${PREFIX}/bin -type f -exec ${SH} -c "${FILE} -i '{}' | \ ${GREP} -q 'x-executable; charset=binary'" \; -print | ${XARGS} ${STRIP_CMD} @${FIND} ${STAGEDIR}${PREFIX}/lib -type f -name lib\*.so.\* | ${XARGS} ${STRIP_CMD} # Apply additional substitutions to pkg-plist generated by the 'makeplist' target create-plist: stage @(cd ${.CURDIR} && ${MAKE} makeplist > pkg-plist && \ ${REINPLACE_CMD} -E \ -e '1d' -e '/etc\/rc.d\/mythbackend/d' -e '/[.]packlist$$/d' \ -e '/[.]bak$$/d' \ -e '/[.]gitignore$$/d' \ -e 's#^bin/mythpython#%%BINDINGS%%bin/mythpython#' \ -e 's#^bin/mythwikiscripts#%%BINDINGS%%bin/mythwikiscripts#' \ -e 's#^%%PYTHON_SITELIBDIR%%#%%BINDINGS%%%%PYTHON_SITELIBDIR%%#' \ -e 's#^%%DATADIR%%hardwareprofile#%%BINDINGS%%hardwareprofile#' \ -e 's#^%%DATADIR%%internetcontent#%%BINDINGS%%internetcontent#' \ -e 's#^%%SITE_PERL%%#%%BINDINGS%%%%SITE_PERL%%#' \ pkg-plist) .include diff --git a/net/freeipa-client/Makefile b/net/freeipa-client/Makefile index d4a113b9561e..2c70d6020641 100644 --- a/net/freeipa-client/Makefile +++ b/net/freeipa-client/Makefile @@ -1,52 +1,53 @@ PORTNAME= freeipa-client DISTVERSION= 4.11.0 PORTREVISION= 1 CATEGORIES= net MASTER_SITES= https://releases.pagure.org/freeipa/ DISTNAME= freeipa-${DISTVERSION} MAINTAINER= xavier.beaudouin@klarasystems.com COMMENT= FreeIPA Client tools WWW= https://www.freeipa.org/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} LIB_DEPENDS= libcmocka.so:sysutils/cmocka \ libcurl.so:ftp/curl \ libini_config.so:devel/ding-libs \ libjansson.so:devel/jansson \ libnspr4.so:devel/nspr \ libnss3.so:security/nss \ libpopt.so:devel/popt \ libpwquality.so:security/libpwquality \ libsasl2.so:security/cyrus-sasl2 \ libxmlrpc.so:net/xmlrpc-c USES= autoreconf gettext gmake gssapi:mit ldap libtool \ localbase:ldflags pkgconfig python GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --disable-dependency-tracking \ --disable-server \ --with-ipaplatform=freebsd \ --without-ipatests \ --without-server # Don't bytecode python files MAKE_ENV= PYTHONDONTWRITEBYTECODE=1 # Remove all systemd dependant things EXTRACT_AFTER_ARGS= --exclude client/systemd --exclude daemons/dnssec \ --exclude daemons/ipa-otpd --exclude \ daemons/ipa-slapi-plugins --exclude init/systemd \ --exclude init/tmpfilesd # Make sample configuration file post-install: @${MV} ${STAGEDIR}${PREFIX}/etc/ipa/epn.conf ${STAGEDIR}${PREFIX}/etc/ipa/epn.conf.sample .include diff --git a/net/py-libdnet/Makefile b/net/py-libdnet/Makefile index 7f8be1f9ab75..b7534322fd72 100644 --- a/net/py-libdnet/Makefile +++ b/net/py-libdnet/Makefile @@ -1,44 +1,45 @@ PORTREVISION= 5 CATEGORIES= net python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} COMMENT= Python module for libdnet +BUILD_DEPENDS= ${PY_SETUPTOOLS} LIB_DEPENDS= libdnet.so:net/libdnet USES= autoreconf libtool localbase:ldflags python MASTERDIR= ${.CURDIR}/../libdnet INSTALL_WRKSRC= ${WRKSRC}/python DESCR= ${.CURDIR}/pkg-descr PLIST= ${NONEXISTENT} PLIST_FILES= ${PYTHON_SITELIBDIR}/dnet%%PYTHON_EXT_SUFFIX%%.so \ ${PYTHON_SITELIBDIR}/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info/PKG-INFO \ ${PYTHON_SITELIBDIR}/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info/SOURCES.txt \ ${PYTHON_SITELIBDIR}/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info/dependency_links.txt \ ${PYTHON_SITELIBDIR}/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info/top_level.txt LIBDNET_SLAVE= yes USE_PYTHON= cython flavors CONFIGURE_ARGS= --with-python=${PYTHON_CMD} .if defined(MAINTAINER_MODE) regression-test: install ${PYTHON_CMD} ${INSTALL_WRKSRC}/test.py .endif .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) CFLAGS+= -Wno-error=incompatible-function-pointer-types .endif post-patch: ${REINPLACE_CMD} 's|%%CYTHON%%|cython-${PYTHON_VER}|g' \ ${WRKSRC}/python/Makefile.am post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/dnet*.so .include "${MASTERDIR}/Makefile" diff --git a/net/py-qt5-networkauth/Makefile b/net/py-qt5-networkauth/Makefile index 37bbc04b1bf2..ad3af79ce242 100644 --- a/net/py-qt5-networkauth/Makefile +++ b/net/py-qt5-networkauth/Makefile @@ -1,24 +1,25 @@ PORTNAME= networkauth PORTVERSION= ${PYQTNETWORKAUTH_VERSION} PORTREVISION= 4 CATEGORIES= net devel python MASTER_SITES= ${MASTER_SITES_PYQTNETWORKAUTH} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQTNETWORKAUTH_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt5 toolkit, QtNetworkAuth module WWW= https://riverbankcomputing.com/software/pyqt -BUILD_DEPENDS= qmake-qt5:devel/qt5-qmake +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + qmake-qt5:devel/qt5-qmake LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2-qt5 USES= gl pyqt:5 python qt:5 USE_GL= gl USE_PYQT= sip:build pyqt5 USE_PYTHON= concurrent flavors py3kplist USE_QT= core gui network networkauth .include diff --git a/net/py-qt6-networkauth/Makefile b/net/py-qt6-networkauth/Makefile index ad5d0e107f92..5ad80b222f88 100644 --- a/net/py-qt6-networkauth/Makefile +++ b/net/py-qt6-networkauth/Makefile @@ -1,26 +1,28 @@ PORTNAME= networkauth DISTVERSION= ${PYQTNETWORKAUTH_VERSION} CATEGORIES= net devel python MASTER_SITES= ${MASTER_SITES_PYQTNETWORKAUTH} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQTNETWORKAUTH_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt6 toolkit, QtNetworkAuth module WWW= https://riverbankcomputing.com/software/pyqt +BUILD_DEPENDS= ${PY_SETUPTOOLS} + USES= gl pyqt:6 python qt:6 USE_GL= opengl USE_PYQT= sip:build pyqt6 qtbuilder USE_PYTHON= concurrent flavors USE_QT= base networkauth PLIST_SUB= PYQTNETWORKAUTH_VERSION=${DISTVERSION} post-install: @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include diff --git a/print/system-config-printer/Makefile b/print/system-config-printer/Makefile index d27c077ffce3..b26325d3271a 100644 --- a/print/system-config-printer/Makefile +++ b/print/system-config-printer/Makefile @@ -1,56 +1,57 @@ PORTNAME= system-config-printer PORTVERSION= 1.5.12 PORTREVISION= 3 CATEGORIES= print gnome MAINTAINER= gnome@FreeBSD.org COMMENT= CUPS configuration Gtk+2.0 GUI WWW= http://cyberelk.net/tim/software/system-config-printer/ -BUILD_DEPENDS= xmlto:textproc/xmlto \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + xmlto:textproc/xmlto \ docbook-xml>0:textproc/docbook-xml LIB_DEPENDS= libcups.so:print/cups RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycups>=0:print/py-pycups@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycurl>=0:ftp/py-pycurl@${PY_FLAVOR} \ ${LOCALBASE}/libexec/cups-pk-helper-mechanism:print/cups-pk-helper # 1.5 series is python3 ignore them for now. PORTSCOUT= limitw:1,even GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share USES= autoreconf desktop-file-utils gettext gmake gnome pathfix \ pkgconfig python shebangfix tar:xz USE_GITHUB= yes GH_ACCOUNT= OpenPrinting CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib USE_GNOME= intlhack pygobject3 CONFIGURE_ARGS= --without-udev-rules \ --without-systemdsystemunitdir NO_ARCH= yes PLIST_SUB= PYTHON_VER=${PYTHON_VERSION:S/python//} SHEBANG_FILES= *.py troubleshoot/*.py xml/validate.py PYDISTUTILS_PKGNAME= cupshelpers PYDISTUTILS_PKGVERSION= 1.0 post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g; \ s|%%PREFIX%%|${PREFIX}|g' \ ${WRKSRC}/applet.py ${WRKSRC}/check-device-ids.py \ ${WRKSRC}/cupshelpers/cupshelpers.py \ ${WRKSRC}/cupshelpers/xmldriverprefs.py \ ${WRKSRC}/dbus/org.fedoraproject.Config.Printing.service.in \ ${WRKSRC}/newprinter.py ${WRKSRC}/probe_printer.py @${REINPLACE_CMD} -e 's|setup.py install.*|setup.py install -c -O1 --prefix=${PREFIX} --root=${STAGEDIR}|g' \ ${WRKSRC}/Makefile.am .include diff --git a/science/chemicalfun/Makefile b/science/chemicalfun/Makefile index 7c90beb17c27..1c55c5c1c2b7 100644 --- a/science/chemicalfun/Makefile +++ b/science/chemicalfun/Makefile @@ -1,57 +1,58 @@ PORTNAME= chemicalfun DISTVERSION= 0.1.8 PORTREVISION= 2 CATEGORIES= science # chemistry MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${PORTNAME}/get/${BB_COMMIT}${EXTRACT_SUFX}?dummy=/:src DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:src MAINTAINER= yuri@FreeBSD.org COMMENT= C++ library for working with chemical reactions and formulas WWW= https://bitbucket.org/gems4/chemicalfun/src/master/ BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ + ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} LIB_DEPENDS= libfmt.so:devel/libfmt # due to SPDLOG_FMT_EXTERNAL LIB_DEPENDS+= libspdlog.so:devel/spdlog USES= cmake:testing compiler:c++17-lang eigen:3 localbase BB_ACCOUNT= gems4 BB_COMMIT= 46c628fef376 WRKSRC= ${WRKDIR}/${BB_ACCOUNT}-${PORTNAME}-${BB_COMMIT} CMAKE_ARGS= -DFREEBSD_PREFIX=${PREFIX} -DFREEBSD_STAGEDIR=${STAGEDIR} \ -DPython_EXECUTABLE=${PYTHON_CMD} CMAKE_TESTING_ON= CHEMICALFUN_BUILD_TESTS # tests fail to compile, BitBucket offers no easy way to report this CMAKE_TESTING_TARGET= ${ALL_TARGET} # hack to prevent test run CXXFLAGS+= -DSPDLOG_FMT_EXTERNAL # see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258073#c3 LDFLAGS+= -L${LOCALBASE}/lib -lfmt # due to SPDLOG_FMT_EXTERNAL OPTIONS_DEFINE= PYTHON OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_USES= python PYTHON_CMAKE_BOOL= CHEMICALFUN_BUILD_PYTHON PYTHON_CMAKE_ON= -DFREEBSD_PREFIX=${PREFIX} PYTHON_BUILD_DEPENDS= pybind11>0:devel/pybind11 post-install-PYTHON-on: # remove wrong *.pyc, see related bug https://bitbucket.org/gems4/chemicalfun/issues/1/please-support-stagedir @${FIND} ${STAGEDIR} -name "*.pyc" -delete @${FIND} ${STAGEDIR} -name __pycache__ -delete # strip binary @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/chemicalfun/PyChemicalFun${PYTHON_EXT_SUFFIX}.so post-test: @${ECHO} "==> run C++ tests" @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} tests/test_main post-test-PYTHON-on: @${ECHO} "==> run Python tests" @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${FILESDIR}/test.py .include diff --git a/science/psi4/Makefile b/science/psi4/Makefile index 4693cc18bedd..f8e3e4fcbf06 100644 --- a/science/psi4/Makefile +++ b/science/psi4/Makefile @@ -1,82 +1,83 @@ PORTNAME= psi4 DISTVERSIONPREFIX= v DISTVERSION= 1.9.1 PORTREVISION= 2 CATEGORIES= science # quantum-chemistry EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= yuri@FreeBSD.org COMMENT= Open-source suite of ab initio quantum chemistry programs WWW= https://psicode.org/ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gau2grid>0:math/py-gau2grid@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}optking>0:science/py-optking@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}qcelemental>0:science/py-qcelemental@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}qcengine>0:science/py-qcengine@${PY_FLAVOR} BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ ${LOCALBASE}/include/pybind11/pybind11.h:devel/pybind11 \ ${PY_DEPENDS} \ + ${PY_SETUPTOOLS} \ libint2-psi4>0:science/libint2-psi4 # has to be this library LIB_DEPENDS= libgg.so:math/gau2grid \ libxc.so:science/libxc RUN_DEPENDS= ${PY_DEPENDS} \ libint2-psi4>0:science/libint2-psi4 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} USES= blaslapack:openblas cmake compiler:c++17-lang eigen:3 fortran localbase:ldflags python USE_GITHUB= yes CMAKE_ARGS= -DLibxc_DIR=${LOCALBASE} \ -DFREEBSD_PYTHON_VER=${PYTHON_VER} \ -DPython_EXECUTABLE=${PYTHON_CMD} \ -DPYMOD_INSTALL_LIBDIR=${PYTHONPREFIX_SITELIBDIR:S|${PREFIX}/lib||} CONFIGURE_ENV= FREEBSD_PYTHON_VER=${PYTHON_VER} LDFLAGS+= -lexecinfo # for backtrace_symbols TEST_ENV= ${MAKE_ENV} \ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}:${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/tests \ PSIDATADIR=${STAGEDIR}${DATADIR} \ PSIPATH=${STAGEDIR}${DATADIR}/basis TEST_WRKSRC= ${WRKSRC}/tests/pytests BINARY_ALIAS= python=${PYTHON_CMD} # only for tests OPTIONS_DEFINE= NATIVE NATIVE_CMAKE_BOOL= ENABLE_XHOST post-patch: # correct the default data dir @${REINPLACE_CMD} \ -E 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/psi4/run_psi4.py do-install: # project fails to install itself into a stage directory due to a convoluted cmake code structure (DESTDIR isn't handled correctly) # main cd ${BUILD_WRKSRC}/stage && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX} ${FIND} ${STAGEDIR}${PREFIX} -name "*.pyc" -delete # samples cd ${WRKSRC} && ${COPYTREE_SHARE} samples ${STAGEDIR}${DATADIR} ${FIND} ${STAGEDIR}${PREFIX} -name "example_psi4rc_file" -delete # delete empty directories ${FIND} ${STAGEDIR} -type d -empty -delete # set executable flag ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/psi4 # correct version number @${REINPLACE_CMD} -i '' -e "s|__version__ = 'undefined'|__version__ = '${DISTVERSION}'|" \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/metadata.py @${REINPLACE_CMD} -i '' -e "s|__version_long = 'undefined+11'|__version_long = '${DISTVERSION}'|" \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/metadata.py # psi4 sometimes fails to print its version: https://github.com/psi4/psi4/issues/2831 do-test: # 2 tests fail, see https://github.com/psi4/psi4/issues/3014 # 1.9: many tests fail: https://github.com/psi4/psi4/issues/3099 @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest # tests can run without this target too, but this way tests output is more concise and it looks more appealing .include diff --git a/science/py-HofstadterTools/Makefile b/science/py-HofstadterTools/Makefile index cac1ea51b518..fd8636f491cb 100644 --- a/science/py-HofstadterTools/Makefile +++ b/science/py-HofstadterTools/Makefile @@ -1,28 +1,29 @@ PORTNAME= HofstadterTools DISTVERSION= 1.0.4 CATEGORIES= science python # physics MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Package for analyzing the Hofstadter model of particles in the lattice WWW= https://hofstadter.tools/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}prettytable>0:devel/py-prettytable@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} USES= compiler:c++11-lang python pyqt:5 USE_PYQT= pyqt5 USE_PYTHON= pep517 concurrent autoplist pytest NO_ARCH= yes .include diff --git a/science/scidavis/Makefile b/science/scidavis/Makefile index 2915fa993837..3ac0d3c41a4c 100644 --- a/science/scidavis/Makefile +++ b/science/scidavis/Makefile @@ -1,49 +1,50 @@ PORTNAME= scidavis PORTVERSION= 2.9.2 PORTREVISION= 2 CATEGORIES= science MAINTAINER= makc@FreeBSD.org COMMENT= Scientific data analysis and visualization WWW= https://scidavis.sourceforge.net LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libgsl.so:math/gsl \ libmuparser.so:math/muparser \ libpng.so:graphics/png \ libqwt5-qt5.so:x11-toolkits/qwt5-qt5 \ libqwtplot3d-qt5.so:math/qwtplot3d \ liborigin.so:math/liborigin USES= cmake compiler:c++17-lang desktop-file-utils gl pkgconfig \ qt:5 shared-mime-info USE_GL= gl glu USE_QT= core gui opengl printsupport svg widgets xml \ buildtools:build linguisttools:build qmake:build USE_GITHUB= yes GH_ACCOUNT= highperformancecoder CMAKE_ON= ORIGIN_IMPORT CMAKE_OFF= DOWNLOAD_LINKS \ SEARCH_FOR_UPDATES PORTSCOUT= skipv:qtiplot OPTIONS_DEFINE= DOCS NLS PYTHON OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes -PYTHON_DESC= Python scripting support -PYTHON_USES= pyqt:5 python -PYTHON_USE= PYQT=pyqt5 sip +PYTHON_DESC= Python scripting support +PYTHON_BUILD_DEPENDS= ${PY_SETUPTOOLS} +PYTHON_USES= pyqt:5 python +PYTHON_USE= PYQT=pyqt5 sip PYTHON_CMAKE_ON= -DPython3_EXECUTABLE=${PYTHON_CMD} \ -DSCRIPTING_PYTHON=True PYTHON_CMAKE_OFF= -DSCRIPTING_PYTHON=False post-install-PYTHON-on: ${MV} ${STAGEDIR}${PREFIX}/etc/scidavisrc.py \ ${STAGEDIR}${PREFIX}/etc/scidavisrc.py.sample .include diff --git a/security/sssd2/Makefile b/security/sssd2/Makefile index 5c7cd1f4cce4..b6d6ec665daa 100644 --- a/security/sssd2/Makefile +++ b/security/sssd2/Makefile @@ -1,202 +1,203 @@ PORTNAME= sssd PORTVERSION= 2.9.5 CATEGORIES= security PKGNAMESUFFIX= 2 MAINTAINER= jhixson@FreeBSD.org COMMENT= System Security Services Daemon WWW= https://sssd.io/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING CONFLICTS_INSTALL?= sssd* -BUILD_DEPENDS= bash:shells/bash \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + bash:shells/bash \ docbook-xsl>=1:textproc/docbook-xsl \ krb5>=1.20:security/krb5 \ p11-kit:security/p11-kit \ nsupdate:dns/bind-tools \ xmlcatalog:textproc/libxml2 \ xmlcatmgr:textproc/xmlcatmgr \ xsltproc:textproc/libxslt LIB_DIRS+= ${LOCALBASE}/lib ${LOCALBASE}/lib/sasl2 LIB_DEPENDS= libcares.so:dns/c-ares \ libcom_err.so:security/krb5 \ libcurl.so:ftp/curl \ libdbus-1.so:devel/dbus \ libdhash.so:devel/ding-libs \ libfido2.so:security/libfido2 \ libgssapi_krb5.so:security/krb5 \ libinotify.so:devel/libinotify \ libjansson.so:devel/jansson \ libjose.so:net/jose \ libkrb5.so:security/krb5 \ libldb.so:databases/ldb22 \ libndr-krb5pac.so:net/samba416 \ libndr-nbt.so:net/samba416 \ libndr-standard.so:net/samba416 \ libndr.so:net/samba416 \ libnfs.so:net/libnfs \ libnss3.so:security/nss \ libp11-kit.so:security/p11-kit \ libpcre2-posix.so:devel/pcre2 \ libplds4.so:devel/nspr \ libpopt.so:devel/popt \ libsamba-util.so:net/samba416 \ libsasl2.so:security/cyrus-sasl2 \ libsmbclient.so:net/samba416 \ libtalloc.so:devel/talloc \ libtdb.so:databases/tdb \ libtevent.so:devel/tevent \ libunistring.so:devel/libunistring \ libuuid.so:misc/e2fsprogs-libuuid RUN_DEPENDS= adcli:net-mgmt/adcli \ cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi USES= autoreconf cpe gettext gmake gssapi:bootstrap,flags,mit iconv ldap \ libtool localbase:ldflags pathfix pkgconfig python:3.9+ shebangfix ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALL_TARGET= install-strip CPE_VENDOR= fedoraproject DEBUG_FLAGS= -g STRIP= CONFIGURE_ARGS= --disable-dependency-tracking \ --datadir=${DATADIR} \ --docdir=${DOCSDIR} \ --localstatedir=/var \ --disable-silent-rules \ --disable-nls \ --disable-cifs-idmap-plugin \ --disable-valgrind \ --disable-systemtap \ --enable-pammoddir=${PREFIX}/lib \ --enable-ldb-version-check \ --enable-pac-responder \ --with-db-path=/var/db/sss/db \ --with-os=freebsd \ --with-plugin-path=${LOCALBASE}/lib/sssd \ --with-pubconf-path=/var/db/sss/pubconf \ --with-pid-path=/var/run \ --with-pipe-path=/var/run/sss/pipes \ --with-mcache-path=/var/db/sss/mc \ --with-environment-file=${LOCALBASE}/etc/sssd \ --with-init-dir=no \ --with-manpages \ --with-xml-catalog-path=${LOCALBASE}/share/xml/catalog \ --with-krb5-plugin-path=${LOCALBASE}/lib/krb5/plugins/libkrb5 \ --with-krb5authdata-plugin-path=${LOCALBASE}/lib/krb5/plugins/authdata \ --with-krb5-conf=/etc/krb5.conf \ --without-python2-bindings \ --with-winbind-plugin-path=${LOCALBASE}/lib/samba4/modules/idmap \ --without-selinux \ --with-gpo-cache-path=/var/db/sss/gpo_cache \ --without-semanage \ --with-app-libs=${LOCALBASE}/lib/sssd/modules \ --without-autofs \ --with-files-provider \ --with-passkey \ --with-libsifp \ --without-libsifp \ --with-syslog=syslog \ --with-samba \ --without-nfsv4-idmapd-plugin \ --with-nfs-lib-path=${LOCALBASE}/lib \ --with-secrets-db-path=/var/lib/sss/secrets \ --with-kcm \ --with-oidc-child \ --with-ldb-lib-dir=${LOCALBASE}/lib/shared-modules/ldb \ --with-smb-idmap-interface-version=6 \ --without-libnl \ --with-nscd-conf=/etc/nscd.conf \ --with-python_prefix=${PREFIX} \ --with-unicode-lib=libunistring CPPFLAGS+= -DRENEWAL_PROG_PATH='\"${LOCALBASE}/sbin/adcli\"' CFLAGS+= -fstack-protector-all CFLAGS+= -I${LOCALBASE}/include/samba4 LIBS+= -L${LOCALBASE}/lib \ -L${LOCALBASE}/lib/samba4/private \ -L${LOCALBASE}/lib/sasl2 \ -linotify -lintl KRB5_HOME= ${LOCALBASE} KRB5_CONFIG= ${LOCALBASE}/bin/krb5-config KRB5_CFLAGS= -I${LOCALBASE}/include KRB5_LIBS= -L${LOCALBAse}/lib -lkrb5 -lk5crypto -lcom_err GSSAPI_KRB5_CFLAGS= -I${LOCALBASE}/include GSSAPI_KRB5_LIBS= -L${LOCALBASE}/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err LDFLAGS+= -lgssapi LDFLAGS_SL+= -lgssapi INCLUDES+= -I${LOCALBASE}/include CONFIGURE_ENV+= INCLUDES="${INCLUDES}" \ LDFLAGS_SL="${LDFLAGS_SL}" MAKE_ENV= MAKELEVEL=0 PLIST_SUB= PYTHON_VER=${PYTHON_VER} MAKE_ENV+= LINGUAS="bg de eu es fr hu id it ja nb nl pl pt ru sv tg tr uk zh_CN zh_TW" SUB_FILES= pkg-message BINARY_ALIAS= python3=python${PYTHON_VER} SHEBANG_FILES= sbus_generate.sh.in \ src/tools/analyzer/sss_analyze \ src/tools/sss_obfuscate \ src/config/SSSDConfigTest.py \ src/tests/python-test.py \ src/tests/pysss-test.py \ src/tests/cwrap/cwrap_test_setup.sh \ src/tests/whitespace_test \ src/tests/pyhbac-test.py \ src/tests/multihost/data/memcachesize.py \ src/tests/double_semicolon_test \ src/tests/pysss_murmur-test.py \ scripts/release.sh \ contrib/git/pre-push \ contrib/ci/rpm-spec-builddeps \ contrib/ci/clean \ contrib/ci/valgrind-condense \ contrib/ci/run-multihost \ contrib/ci/run \ contrib/ci/get-matrix.py \ contrib/vagrant/bootstrap.sh \ contrib/fedora/make_srpm.sh USE_RC_SUBR= ${PORTNAME} USE_GITHUB=yes GH_ACCOUNT=sssd post-patch: @${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}/bin/|g' \ -e 's|/var/lib/sss/pubconf/|/var/db/sss/pubconf/|g' \ ${WRKSRC}/src/man/sss_ssh_knownhostsproxy.1.xml \ ${WRKSRC}/src/man/po/*.po || true @${REINPLACE_CMD} -e 's|/etc/sssd/|${ETCDIR}/|g' \ -e 's|/etc/openldap/|${LOCALBASE}/etc/openldap/|g' \ ${WRKSRC}/src/man/*xml || true @${CP} ${FILESDIR}/sss_bsd_errno.h ${WRKSRC}/src/util/sss_bsd_errno.h @${CP} ${FILESDIR}/bsdnss.c ${WRKSRC}/src/sss_client/bsdnss.c post-install: ${INSTALL_DATA} ${WRKSRC}/src/examples/sssd-example.conf \ ${STAGEDIR}${ETCDIR}/sssd.conf.sample ${MKDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/system.d ${INSTALL_DATA} ${WRKSRC}/src/responder/ifp/org.freedesktop.sssd.infopipe.conf \ ${STAGEDIR}${PREFIX}/share/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf ${MKDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/system-services ${INSTALL_DATA} ${WRKSRC}/src/responder/ifp/org.freedesktop.sssd.infopipe.service \ ${STAGEDIR}${PREFIX}/share/dbus-1/system-services/org.freedesktop.sssd.infopipe.service ${LN} -sf libnss_sss.so.2 ${STAGEDIR}${PREFIX}/lib/nss_sss.so.1 .include diff --git a/textproc/py-pandoc-plantuml-filter/Makefile b/textproc/py-pandoc-plantuml-filter/Makefile index d46d814db3d3..7a43318784a9 100644 --- a/textproc/py-pandoc-plantuml-filter/Makefile +++ b/textproc/py-pandoc-plantuml-filter/Makefile @@ -1,26 +1,27 @@ PORTNAME= pandoc-plantuml-filter PORTVERSION= 0.1.5 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= awoonyaa@gmail.com COMMENT= Pandoc filter which converts PlantUML code blocks to PlantUML images WWW= https://github.com/timofurrer/pandoc-plantuml-filter LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandocfilters>0:textproc/py-pandocfilters@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pandocfilters>0:textproc/py-pandocfilters@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandocfilters>0:textproc/py-pandocfilters@${PY_FLAVOR} \ plantuml>0:graphics/plantuml USES= python USE_PYTHON= autoplist pep517 NO_ARCH= yes .include diff --git a/www/chrome-gnome-shell/Makefile b/www/chrome-gnome-shell/Makefile index 458a541388fb..a609fe3fc2fa 100644 --- a/www/chrome-gnome-shell/Makefile +++ b/www/chrome-gnome-shell/Makefile @@ -1,35 +1,36 @@ PORTNAME= chrome-gnome-shell DISTVERSION= 10.1 PORTREVISION= 2 CATEGORIES= www gnome MASTER_SITES= GNOME MAINTAINER= daniel@shafer.cc COMMENT= GNOME Shell integration for Chrome WWW= https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= base64:converters/base64 \ +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + base64:converters/base64 \ gnome-shell>=3.28:x11/gnome-shell \ jq:textproc/jq RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ gnome-shell>=3.28:x11/gnome-shell \ unzip>=6.0:archivers/unzip USES= cmake gnome python tar:xz USE_GNOME= pygobject3 CMAKE_OFF= BUILD_EXTENSION CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR=lib INSTALL_TARGET= install NO_ARCH= yes post-patch: @${REINPLACE_CMD} -e '/find_program_ex/s|gsha256sum|gsha256sum sha256|g' ${WRKSRC}/CMakeLists.txt .include diff --git a/www/py-qt5-webengine/Makefile b/www/py-qt5-webengine/Makefile index 3d760f7e0d64..ea0d86226d66 100644 --- a/www/py-qt5-webengine/Makefile +++ b/www/py-qt5-webengine/Makefile @@ -1,26 +1,28 @@ PORTNAME= webengine DISTVERSION= ${PYQTWEBENGINE_VERSION} PORTREVISION= 2 CATEGORIES= www devel python MASTER_SITES= ${MASTER_SITES_PYQTWEBENGINE} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQTWEBENGINE_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt5 toolkit, QtWebEngine module WWW= https://riverbankcomputing.com/software/pyqt LICENSE= GPLv3 +BUILD_DEPENDS= ${PY_SETUPTOOLS} + USES= gl python pyqt:5 qt:5 USE_GL= gl USE_PYQT= sip:build pyqt5 USE_PYTHON= concurrent flavors py3kplist USE_QT= core declarative gui location network printsupport webchannel \ webengine widgets qmake:build -PLIST_SUB= PYQT_WEBENGINE_VERSION=${DISTVERSION} +PLIST_SUB= PYQT_WEBENGINE_VERSION=${DISTVERSION} .include diff --git a/www/py-qt6-webengine/Makefile b/www/py-qt6-webengine/Makefile index 8a6e942bdb93..34ac80810678 100644 --- a/www/py-qt6-webengine/Makefile +++ b/www/py-qt6-webengine/Makefile @@ -1,30 +1,32 @@ PORTNAME= webengine DISTVERSION= ${PYQTWEBENGINE_VERSION} CATEGORIES= www devel python MASTER_SITES= ${MASTER_SITES_PYQTWEBENGINE} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQTWEBENGINE_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt6 toolkit, QtWebEngine module WWW= https://riverbankcomputing.com/software/pyqt +BUILD_DEPENDS= ${PY_SETUPTOOLS} + USES= gl python pyqt:6 qt:6 USE_GL= opengl USE_PYQT= sip:build pyqt6 USE_PYTHON= concurrent flavors USE_QT= base declarative positioning webchannel webengine PLIST_SUB= PYQT_WEBENGINE_VERSION=${DISTVERSION} post-patch: @${REINPLACE_CMD} -e 's|%%QT_INCDIR%%|${QT_INCDIR}|g' \ ${WRKSRC}/pyproject.toml post-install: @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include diff --git a/www/varnish-libvmod-maxminddb/Makefile b/www/varnish-libvmod-maxminddb/Makefile index ee452820b8c4..2b45ca2b67fb 100644 --- a/www/varnish-libvmod-maxminddb/Makefile +++ b/www/varnish-libvmod-maxminddb/Makefile @@ -1,32 +1,33 @@ PORTNAME= libvmod-maxminddb DISTVERSIONPREFIX= v DISTVERSION= 1.0.2 PORTREVISION= 3 CATEGORIES= www PKGNAMEPREFIX= varnish- MAINTAINER= allanjude@FreeBSD.org COMMENT= Varnish Module (vmod) for accessing maxminddb geoip data WWW= https://github.com/simonvik/libvmod_maxminddb LICENSE= BSD2CLAUSE -BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + rst2man:textproc/py-docutils@${PY_FLAVOR} LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb USES= autoreconf compiler:c11 gmake libtool pkgconfig \ python:build varnish:7 USE_GITHUB= yes GH_ACCOUNT= scaleengine GH_PROJECT= libvmod_maxminddb USE_LDCONFIG= ${PREFIX}/lib/varnach/vmods GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --disable-static INSTALL_TARGET= install-strip OPTIONS_DEFINE= DOCS .include diff --git a/x11-toolkits/py-qt6-chart/Makefile b/x11-toolkits/py-qt6-chart/Makefile index f38512934c34..41c873ca0509 100644 --- a/x11-toolkits/py-qt6-chart/Makefile +++ b/x11-toolkits/py-qt6-chart/Makefile @@ -1,28 +1,30 @@ PORTNAME= chart DISTVERSION= ${PYQTCHART_VERSION} CATEGORIES= x11-toolkits devel python MASTER_SITES= ${MASTER_SITES_PYQTCHART} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQTCHART_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt6 toolkit, QtChart module WWW= https://riverbankcomputing.com/software/pyqtchart LICENSE= ${PYQT6_LICENSE} +BUILD_DEPENDS= ${PY_SETUPTOOLS} + USES= gl pyqt:6 python qt:6 USE_GL= opengl USE_PYQT= sip:build pyqt6 qtbuilder USE_PYTHON= concurrent flavors USE_QT= base charts PLIST_SUB= PYQTCHART_VERSION=${DISTVERSION} post-install: @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include diff --git a/x11-toolkits/py-qt6-datavis3d/Makefile b/x11-toolkits/py-qt6-datavis3d/Makefile index 5bbd80b56c2b..406433e4b2cb 100644 --- a/x11-toolkits/py-qt6-datavis3d/Makefile +++ b/x11-toolkits/py-qt6-datavis3d/Makefile @@ -1,28 +1,30 @@ PORTNAME= datavis3d DISTVERSION= ${PYQTDATAVIS3D_VERSION} CATEGORIES= x11-toolkits devel python MASTER_SITES= ${MASTER_SITES_PYQTDATAVIS3D} PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- DISTNAME= ${PYQTDATAVIS3D_DISTNAME} PYQT_DIST= yes MAINTAINER= kde@FreeBSD.org COMMENT= Python bindings for the Qt6 data visualization library WWW= https://riverbankcomputing.com/software/pyqtdatavisualization/ +BUILD_DEPENDS= ${PY_SETUPTOOLS} + USES= gl pyqt:6 python qt:6 USE_GL= opengl USE_PYQT= sip:build pyqt6 qtbuilder:build USE_PYTHON= concurrent flavors USE_QT= base datavis3d PLIST_SUB= PYQTDATAVIS3D_VERSION=${DISTVERSION} \ PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER} \ PYTHON_MAJOR_VER_regex=[[:<:]]${PYTHON_MAJOR_VER}[[:>:]] post-install: @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \ -name '*.so*' -exec ${STRIP_CMD} {} + .include