diff --git a/news/hellanzb/Makefile b/news/hellanzb/Makefile index 8e86dc991f0a..6b7e7891b066 100644 --- a/news/hellanzb/Makefile +++ b/news/hellanzb/Makefile @@ -1,45 +1,44 @@ # Created by: Philip Jenvey # $FreeBSD$ PORTNAME= hellanzb PORTVERSION= 0.13 PORTREVISION= 2 CATEGORIES= news MASTER_SITES= http://www.hellanzb.com/distfiles/ MAINTAINER= pjenvey@groovie.org COMMENT= Nzb downloader and post processor LICENSE= BSD RUN_DEPENDS= par2:${PORTSDIR}/archivers/par2cmdline \ flac:${PORTSDIR}/audio/flac \ shorten:${PORTSDIR}/audio/shorten \ ${PYTHON_PKGNAMEPREFIX}yenc>=0:${PORTSDIR}/news/py-yenc \ mac:${PORTSDIR}/audio/mac -USE_PYTHON= 2 -USE_PYDISTUTILS=yes -USES= twisted:run,web +USE_PYTHON= distutils +USES= python:2 twisted:run,web PORTDOCS= CHANGELOG CREDITS README OPTIONS_DEFINE= DOCS .include # more fully-featured rar needs i386 .if ${ARCH} == "i386" RUN_DEPENDS+= rar:${PORTSDIR}/archivers/rar .else RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar .endif post-install: .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor .endif .include diff --git a/news/papercut/Makefile b/news/papercut/Makefile index 2da914393373..38b1def0a760 100644 --- a/news/papercut/Makefile +++ b/news/papercut/Makefile @@ -1,35 +1,35 @@ # Created by: Clement Laforet # $FreeBSD$ PORTNAME= papercut PORTVERSION= 0.9.13 CATEGORIES= news python MASTER_SITES= http://pessoal.org/papercut/ MAINTAINER= ports@FreeBSD.org COMMENT= Papercut is a news server written in Python, using a MySQL backend RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb -USE_PYTHON= yes +USES= python NO_BUILD= yes do-configure: ${CP} ${FILESDIR}/papercut-wrapper ${WRKDIR}/papercut-wrapper ${REINPLACE_CMD} -e "s,__DATADIR__,${DATADIR}," ${WRKDIR}/papercut-wrapper ${REINPLACE_CMD} -e "s,__PYTHON__,${PYTHON_CMD}," ${WRKDIR}/papercut-wrapper ${REINPLACE_CMD} "s,/home/papercut,${DATADIR}," ${WRKSRC}/settings.py do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${DATADIR}/cache @${MKDIR} ${STAGEDIR}${DATADIR}/logs .for DIR in auth storage @${MKDIR} ${STAGEDIR}${DATADIR}/${DIR} ${INSTALL_SCRIPT} ${WRKSRC}/${DIR}/* ${STAGEDIR}${DATADIR}/${DIR} .endfor ${INSTALL_SCRIPT} ${WRKDIR}/papercut-wrapper ${STAGEDIR}${PREFIX}/bin/papercut ${MV} ${STAGEDIR}${DATADIR}/settings.py ${STAGEDIR}${DATADIR}/settings.py.sample .include diff --git a/news/py-pynzb/Makefile b/news/py-pynzb/Makefile index dddb735b4a66..f1ec2b429846 100644 --- a/news/py-pynzb/Makefile +++ b/news/py-pynzb/Makefile @@ -1,25 +1,24 @@ # Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= pynzb PORTVERSION= 0.1.0 PORTREVISION= 2 CATEGORIES= news python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Unified API for parsing NZB files LICENSE= BSD3CLAUSE -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options OPTIONS_DEFINE= LXML LXML_DESC= Add support for py-lxml LXML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=2.2.1:${PORTSDIR}/devel/py-lxml .include diff --git a/news/py-twistedNews/Makefile b/news/py-twistedNews/Makefile index 9069b3ab72fa..7519155d452c 100644 --- a/news/py-twistedNews/Makefile +++ b/news/py-twistedNews/Makefile @@ -1,22 +1,20 @@ # Created by: Neal Nelson # $FreeBSD$ PORTNAME= twistedNews PORTVERSION= 14.0.0 CATEGORIES= news devel python MASTER_SITES= http://twistedmatrix.com/Releases/News/${PORTVERSION:R}/ \ LOCAL/sunpoet PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= TwistedNews-${PORTVERSION} MAINTAINER= python@FreeBSD.org COMMENT= NNTP protocol implementation with client and server LICENSE= MIT -USE_PYTHON= 2 -USE_PYDISTUTILS=yes -PYDISTUTILS_AUTOPLIST= yes -USES= tar:bzip2 twisted +USE_PYTHON= distutils autoplist +USES= python:2 tar:bzip2 twisted .include diff --git a/news/py-yenc/Makefile b/news/py-yenc/Makefile index 3220eb983b2d..d874d71dfa8f 100644 --- a/news/py-yenc/Makefile +++ b/news/py-yenc/Makefile @@ -1,17 +1,17 @@ # Created by: Alexander Botero-Lowry # $FreeBSD$ PORTNAME= yenc PORTVERSION= 0.3 CATEGORIES= news python MASTER_SITES= http://sabnzbd.sourceforge.net/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jlaffaye@FreeBSD.org COMMENT= yenc decoding module for Python in C -USE_PYTHON= yes -USE_PYDISTUTILS=yes +USES= python +USE_PYTHON= distutils .include diff --git a/news/sabnzbdplus/Makefile b/news/sabnzbdplus/Makefile index 3ff7a9f1f8e0..dea8c9fa8d12 100644 --- a/news/sabnzbdplus/Makefile +++ b/news/sabnzbdplus/Makefile @@ -1,142 +1,141 @@ # $FreeBSD$ PORTNAME= sabnzbdplus PORTVERSION= 0.7.18 CATEGORIES= news MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} DISTNAME= SABnzbd-${PORTVERSION}-src MAINTAINER= feld@FreeBSD.org COMMENT= Web-interface based binary newsgrabber in python, with nzb support LICENSE= GPLv2 GPLv3 PSFL CHERRYPY CONFIGOBJ FEEDPARSER GNTP JSON KRONOS LISTQUOTE MSGFMT PYNEWSLEECHER RARFILE RSSLIB SSMTPLIB LICENSE_COMB= multi RUN_DEPENDS= cheetah:${PORTSDIR}/devel/py-cheetah \ ${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 LICENSE_NAME_CHERRYPY= CherryPy License LICENSE_FILE_CHERRYPY= ${WRKSRC}/licenses/License-CherryPy.txt LICENSE_PERMS_CHERRYPY= auto-accept LICENSE_NAME_CONFIGOBJ= configobj License LICENSE_FILE_CONFIGOBJ= ${WRKSRC}/licenses/License-configobj.txt LICENSE_PERMS_CONFIGOBJ= auto-accept LICENSE_NAME_FEEDPARSER= feedparser License LICENSE_FILE_FEEDPARSER= ${WRKSRC}/licenses/License-feedparser.txt LICENSE_PERMS_FEEDPARSER= auto-accept LICENSE_NAME_GNTP= gntp License LICENSE_FILE_GNTP= ${WRKSRC}/licenses/License-gntp.txt LICENSE_PERMS_GNTP= auto-accept LICENSE_NAME_JSON= json License LICENSE_FILE_JSON= ${WRKSRC}/licenses/License-json.txt LICENSE_PERMS_JSON= auto-accept LICENSE_NAME_KRONOS= kronos License LICENSE_FILE_KRONOS= ${WRKSRC}/licenses/License-kronos.txt LICENSE_PERMS_KRONOS= auto-accept LICENSE_NAME_LISTQUOTE= listquote License LICENSE_FILE_LISTQUOTE= ${WRKSRC}/licenses/License-listquote.txt LICENSE_PERMS_LISTQUOTE= auto-accept LICENSE_NAME_MSGFMT= msgfmt License LICENSE_FILE_MSGFMT= ${WRKSRC}/licenses/License-msgfmt.txt LICENSE_PERMS_MSGFMT= auto-accept LICENSE_NAME_PYNEWSLEECHER= pynewsleecher License LICENSE_FILE_PYNEWSLEECHER= ${WRKSRC}/licenses/License-pynewsleecher.txt LICENSE_PERMS_PYNEWSLEECHER= auto-accept LICENSE_NAME_RARFILE= rarfile License LICENSE_FILE_RARFILE= ${WRKSRC}/licenses/License-rarfile.txt LICENSE_PERMS_RARFILE= auto-accept LICENSE_NAME_RSSLIB= rsslib License LICENSE_FILE_RSSLIB= ${WRKSRC}/licenses/License-rsslib.txt LICENSE_PERMS_RSSLIB= auto-accept LICENSE_NAME_SSMTPLIB= ssmtplib License LICENSE_FILE_SSMTPLIB= ${WRKSRC}/licenses/License-ssmtplib.txt LICENSE_PERMS_SSMTPLIB= auto-accept -USE_PYTHON= yes -USES= gettext +USES= gettext python NO_BUILD= yes WRKSRC= ${WRKDIR}/SABnzbd-${PORTVERSION} PLIST_SUB= PORTNAME=${PORTNAME} SUB_LIST+= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} SUB_FILES= pkg-message USE_RC_SUBR= sabnzbd PORTDOCS= ABOUT.txt \ CHANGELOG.txt \ COPYRIGHT.txt \ INSTALL.txt \ ISSUES.txt \ README.txt USERS= _sabnzbd GROUPS= _sabnzbd OPTIONS_DEFINE= PAR2CMDLINE UNRAR FEEDPARSER YENC OPENSSL DOCS OPTIONS_DEFAULT= PAR2CMDLINE UNRAR FEEDPARSER YENC OPENSSL PAR2CMDLINE_DESC= Required for postprocessing of par files UNRAR_DESC= Often required for unpacking many downloads FEEDPARSER_DESC= rss-feed support YENC_DESC= yenc support .include .if ${PORT_OPTIONS:MPAR2CMDLINE} RUN_DEPENDS+= par2repair:${PORTSDIR}/archivers/par2cmdline-tbb .endif .if ${PORT_OPTIONS:MFEEDPARSER} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:${PORTSDIR}/textproc/py-feedparser .endif .if ${PORT_OPTIONS:MYENC} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}yenc>=0:${PORTSDIR}/news/py-yenc .endif .if ${PORT_OPTIONS:MOPENSSL} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl .endif .if ${PORT_OPTIONS:MUNRAR} RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar .endif post-patch: @${REINPLACE_CMD} -e "s:/usr/bin/python:${PYTHON_CMD}:g" \ ${WRKSRC}/SABnzbd.py @${REINPLACE_CMD} -e "s:%%PREFIX%%:'${DATADIR}':g" \ ${WRKSRC}/SABnzbd.py # the NO_BUILD option stops execution after configure. This should really be # post-build do-install: ${INSTALL_SCRIPT} ${WRKSRC}/SABnzbd.py ${STAGEDIR}${PREFIX}/bin ${INSTALL} -d ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd cd ${WRKSRC}/sabnzbd && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd ${INSTALL} -d ${STAGEDIR}${DATADIR} ${INSTALL} -d ${STAGEDIR}${PREFIX}/sabnzbd .for i in cherrypy gntp interfaces locale po tools util ${MKDIR} ${STAGEDIR}${DATADIR}/${i} cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${i} .endfor .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif .include diff --git a/news/xpn/Makefile b/news/xpn/Makefile index f791e0b63efe..cee03d62661c 100644 --- a/news/xpn/Makefile +++ b/news/xpn/Makefile @@ -1,41 +1,39 @@ # Created by: Nicola Vitale # $FreeBSD$ PORTNAME= xpn PORTVERSION= 1.2.6 PORTREVISION= 4 CATEGORIES= news python MASTER_SITES= http://xpn.altervista.org/codice/ \ http://nivi.interfree.it/distfiles/${PORTNAME}/ MAINTAINER= nivit@FreeBSD.org COMMENT= X Python Newsreader RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 NO_BUILD= yes -USE_PYTHON= yes - FIND_DIRS= -type d FIND_DATA= -type f -mindepth 2 -not -name "*~" SUB_FILES= ${PORTNAME} SUB_LIST= PYTHON_CMD=${PYTHON_CMD} XPN=${XPN} -USES= gettext +USES= gettext python XPN= ${PORTNAME}.py OPTIONS_DEFINE= DOCS do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/${XPN} ${STAGEDIR}${DATADIR}/${XPN} ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} ";" cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} ";" ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${STAGEDIR}${DOCSDIR} .include diff --git a/print/biblio-py/Makefile b/print/biblio-py/Makefile index 873e449ec025..8d68777a146b 100644 --- a/print/biblio-py/Makefile +++ b/print/biblio-py/Makefile @@ -1,18 +1,17 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= biblio-py PORTVERSION= 0.6.1 CATEGORIES= print python MASTER_SITES= CHEESESHOP MAINTAINER= wen@FreeBSD.org COMMENT= Package to manage bibliography written in python LICENSE= GPLv2 -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist .include diff --git a/print/cloudprint/Makefile b/print/cloudprint/Makefile index 2e7d015d4aa4..ea84936567b0 100644 --- a/print/cloudprint/Makefile +++ b/print/cloudprint/Makefile @@ -1,32 +1,32 @@ # Created by: Bernhard Froehlich # $FreeBSD$ PORTNAME= cloudprint PORTVERSION= 0.11.20140216 CATEGORIES= print MAINTAINER= decke@FreeBSD.org COMMENT= Google Cloud Print proxy for local CUPS printers LICENSE= GPLv3 RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \ ${PYTHON_PKGNAMEPREFIX}daemon>0:${PORTSDIR}/devel/py-daemon USE_GITHUB= yes GH_ACCOUNT= armooo GH_TAGNAME= ${GH_COMMIT} GH_COMMIT= d55435a -USE_PYTHON= 2 -USE_PYDISTUTILS= yes +USES= python:2 +USE_PYTHON= distutils USE_RC_SUBR= ${PORTNAME} USERS= cups GROUPS= cups SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}" \ CPUSER="${USERS}" \ CPGROUP="${GROUPS}" .include diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile index 8fd3b6106648..94ebf98dc0cc 100644 --- a/print/cups-base/Makefile +++ b/print/cups-base/Makefile @@ -1,314 +1,314 @@ # Created by: Alan Eldridge # $FreeBSD$ PORTNAME= cups PORTVERSION= 1.7.3 DISTVERSIONSUFFIX= -source #PORTREVISION= defined further CATEGORIES= print MASTER_SITES= http://www.cups.org/software/${DISTVERSION}/ \ EASYSW/${PORTNAME}/${DISTVERSION} PKGNAMESUFFIX= ${CUPS_SUFFIX}${PKGNAMESUFFIX2} MAINTAINER= ports@FreeBSD.org COMMENT= Common UNIX Printing System: ${COMMENT2} LICENSE= GPLv2 CONFLICTS= LPRng-[0-9]* UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX} USES+= gmake pkgconfig tar:bzip2 DESTDIRNAME= DSTROOT GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib DSOFLAGS= -Wl,-rpath,${PREFIX}/lib ${LDFLAGS} ${LIBS} CONFIGURE_ENV= DSOFLAGS="${DSOFLAGS}" CONFIGURE_ARGS+= --localstatedir=/var \ --disable-gssapi \ --with-cups-user=${USERS} \ --with-cups-group=${GROUPS} \ --with-system-groups=${CUPSSYSGRP} \ --with-docdir=${DOCSDIR} \ --with-menudir=${DESKTOPDIR} \ --with-domainsocket=${CUPS_SOCKET} \ --with-cachedir=${CUPS_CACHEDIR} \ --with-pam-module="unix" \ --enable-ssl CUPS_CACHEDIR?= /var/db/cups CUPS_SPOOLDIR= /var/spool/cups CUPS_SOCKET?= /var/run/cups.sock CUPS_PDFTOPS?= ${LOCALBASE}/libexec/xpdf/pdftops WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} CUPSSYSGRP= wheel # GROUPS/USERS does not work here GROUPS= cups USERS= cups # UNIQUENAME must be set before bsd.port.pre.mk so OPTIONSFILE can be included .if defined(CUPS_CLIENT) PORTREVISION= 2 LICENSE= LGPL21 CUPS_SUFFIX= -client OPTIONS_SINGLE= SSL OPTIONS_SINGLE_SSL= GNUTLS OPENSSL OPTIONS_DEFAULT= OPENSSL OPTIONS_SUB= yes .elif defined(CUPS_IMAGE) PORTREVISION= 1 CUPS_SUFFIX= -image LICENSE= LGPL21 OPTIONS_SINGLE= SSL OPTIONS_SINGLE_SSL= GNUTLS OPENSSL OPTIONS_DEFAULT= OPENSSL OPTIONS_SUB= yes .else PORTREVISION= 1 CUPS_SUFFIX= -base # No DOCS option. Files are needed by web interface. OPTIONS_DEFINE= DBUS ICONS LIBPAPER LIBUSB PAM XDG_OPEN OPTIONS_GROUP= WEB OPTIONS_GROUP_WEB= JAVA PERL PHP PYTHON OPTIONS_SINGLE= SSL OPTIONS_SINGLE_SSL= GNUTLS OPENSSL OPTIONS_RADIO= ZEROCONF OPTIONS_RADIO_ZEROCONF= AVAHI MDNSRESPONDER OPTIONS_DEFAULT= LIBPAPER MDNSRESPONDER OPENSSL ICONS OPTIONS_SUB= yes .endif ICONS_DESC= Desktop icons LIBUSB_DESC= USB support WEB_DESC= Interpreters for web interfaces XDG_OPEN_DESC= Build with XDG_OPEN as browser ZEROCONF_DESC= Zeroconf support .include .if defined(CUPS_CLIENT) COMMENT2= Library cups INSTALL_WRKSRC= ${WRKSRC}/cups PLIST= ${MASTERDIR}/pkg-plist.client USES+= iconv LIBS+= ${ICONV_LIB} USE_LDCONFIG= yes PKGMESSAGE= ${NONEXISTENT} DESCR= ${MASTERDIR}/pkg-descr.client .elif defined(CUPS_IMAGE) LIB_DEPENDS+= libcups.so:${PORTSDIR}/${PKGCATEGORY}/cups-client \ libjpeg.so:${PORTSDIR}/graphics/jpeg \ libpng15.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff # force build if old cups is installed. BUILD_DEPENDS+= cups-client${PKGNAMESUFFIX2}>=${PORTVERSION}:${PORTSDIR}/${PKGCATEGORY}/cups-client COMMENT2= Library cupsimage INSTALL_WRKSRC= ${WRKSRC}/filter PLIST= ${MASTERDIR}/pkg-plist.image USE_LDCONFIG= yes PKGMESSAGE= ${NONEXISTENT} DESCR= ${MASTERDIR}/pkg-descr.image .else LIB_DEPENDS+= libcups.so:${PORTSDIR}/${PKGCATEGORY}/cups-client \ libcupsimage.so:${PORTSDIR}/${PKGCATEGORY}/cups-image # force build if old cups is installed. BUILD_DEPENDS+= cups-client${PKGNAMESUFFIX2}>=${PORTVERSION}:${PORTSDIR}/${PKGCATEGORY}/cups-client BUILD_DEPENDS+= cups-image${PKGNAMESUFFIX2}>=${PORTVERSION}:${PORTSDIR}/${PKGCATEGORY}/cups-image COMMENT2= Server USE_RC_SUBR= cupsd PLIST_SUB+= CACHEDIR="${CUPS_CACHEDIR}" BROKEN_ia64= stack-protector not supported on ia64 .endif .if defined(CUPS_OVERWRITE_BASE) PLIST_SUB+= OVERWRITE="" CONFIGURE_ARGS+= --with-printcap=/etc/printcap .else PLIST_SUB+= OVERWRITE="@comment " CONFIGURE_ARGS+= --with-printcap=${PREFIX}/etc/printcap .endif .if ${PORT_OPTIONS:MGNUTLS} CONFIGURE_ARGS+= --disable-openssl --enable-gnutls LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt \ libgnutls.so:${PORTSDIR}/security/gnutls .endif .if ${PORT_OPTIONS:MOPENSSL} USE_OPENSSL= yes CONFIGURE_ARGS+= --disable-gnutls --enable-openssl .endif # Don't use CONFIGURE_ARGS+=--without-* to disable web interpreters because it # will set the path of the interpreter to "no" and set it's existence to TRUE. .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MJAVA} CONFIGURE_ARGS+= --with-java=${JAVA} USE_JAVA= yes .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPERL} CONFIGURE_ARGS+= --with-perl=${PERL} USES+= perl5 .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPHP} CONFIGURE_ARGS+= --with-php=${LOCALBASE}/bin/php-cgi USE_PHP= yes USE_PHP_BUILD= yes WANT_PHP_CGI= yes .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPYTHON} CONFIGURE_ARGS+= --with-python=${PYTHON_CMD} -USE_PYTHON= yes +USES+= python .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MLIBPAPER} CONFIGURE_ARGS+= --enable-libpaper LIB_DEPENDS+= libpaper.so:${PORTSDIR}/print/libpaper .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MMDNSRESPONDER} LIB_DEPENDS+= libdns_sd.so:${PORTSDIR}/net/mDNSResponder CONFIGURE_ARGS+= --with-dnssd-includes=${LOCALBASE}/include CONFIGURE_ARGS+= --disable-avahi .elif !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MAVAHI} CONFIGURE_ARGS+= --enable-avahi LIB_DEPENDS+= libavahi-client.so:${PORTSDIR}/net/avahi-app .else CONFIGURE_ARGS+= --disable-dnssd CONFIGURE_ARGS+= --disable-avahi .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MPAM} CONFIGURE_ARGS+= --enable-pam .else CONFIGURE_ARGS+= --disable-pam .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MDBUS} LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus CONFIGURE_ARGS+= --enable-dbus .else CONFIGURE_ARGS+= --disable-dbus .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MXDG_OPEN} RUN_DEPENDS+= xdg-open:${PORTSDIR}/devel/xdg-utils .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MLIBUSB} CONFIGURE_ARGS+= --enable-libusb .else CONFIGURE_ARGS+= --disable-libusb .endif .if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && ${PORT_OPTIONS:MICONS} INSTALLS_ICONS= yes CONFIGURE_ARGS+= --with-icondir=${PREFIX}/share/icons .endif .if ${OSVERSION} < 1000036 && ${ARCH} == i386 LIBS+= -lssp_nonshared .endif .if ! defined(CUPS_CLIENT) && ! defined(CUPS_IMAGE) SUB_FILES+= ulpt-cupsd.conf ulpt-cupsd.sh .endif post-patch: .if ${ARCH} == "amd64" @${REINPLACE_CMD} -e 's|@PIEFLAGS@||' ${WRKSRC}/Makedefs.in .endif .if ${PORT_OPTIONS:MMDNSRESPONDER} @${REINPLACE_CMD} -e 's|Darwin|FreeBSD|' \ ${WRKSRC}/backend/Makefile .endif .if ${PORT_OPTIONS:MXDG_OPEN} @${REINPLACE_CMD} -e 's|htmlview|xdg-open|' ${WRKSRC}/desktop/cups.desktop.in .endif @${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in @${REINPLACE_CMD} -e 's|/etc/cups|${LOCALBASE}/etc/cups|g' ${WRKSRC}/man/*.man* @${REINPLACE_CMD} -e 's|-lpthreads.*;|${PTHREAD_LIBS};|g' \ -e 's|/private/etc/pam.d|${LOCALBASE}/etc/pam.d|' \ -e 's|-D_LARGEFILE64_SOURCE||g' \ ${WRKSRC}/${CONFIGURE_SCRIPT} .if defined(CUPS_CLIENT) @${REINPLACE_CMD} \ -e 's|cups test|cups|' \ -e 's|cups filter |cups |' \ -e 's|driver ppdc scheduler||' \ -e 's|$$.PHPDIR. $$.FONTS.||' \ ${WRKSRC}/Makefile .elif defined(CUPS_IMAGE) @${REINPLACE_CMD} \ -e 's|cups test||' \ -e 's|cups filter |filter |' \ -e 's|driver ppdc scheduler||' \ -e 's|$$.PHPDIR. $$.FONTS.||' \ ${WRKSRC}/Makefile .else @${REINPLACE_CMD} \ -e 's|cups test|test|' \ -e 's|cups filter driver|driver|' \ -e '/cd cups/d' \ -e 's|$$.INSTALL_SCRIPT. cups-config|echo skip: cups-config|' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} \ -e 's|cups-config.$$.MAN1EXT. ||' \ ${WRKSRC}/man/Makefile .endif post-configure: .if defined(CUPS_CLIENT) @${REINPLACE_CMD} \ -e 's|filter .* templates||' \ ${WRKSRC}/Makedefs .elif defined(CUPS_IMAGE) @${REINPLACE_CMD} \ -e 's|filter .* templates|filter|' \ ${WRKSRC}/Makedefs .else @${REINPLACE_CMD} \ -e 's|filter backend|backend|' \ ${WRKSRC}/Makedefs .endif .if !defined(CUPS_CLIENT) pre-build: ${CP} -p ${LOCALBASE}/lib/libcups.a ${WRKSRC}/cups/ ${CP} -p ${LOCALBASE}/lib/libcups.so ${WRKSRC}/cups/ ${CP} -p ${LOCALBASE}/lib/libcups.so.2 ${WRKSRC}/cups/ .if !defined(CUPS_IMAGE) ${CP} -p ${LOCALBASE}/lib/libcupsimage.so ${WRKSRC}/filter/ ${CP} -p ${LOCALBASE}/lib/libcupsimage.so.2 ${WRKSRC}/filter/ .endif .endif post-install: .if defined(CUPS_CLIENT) ${INSTALL_SCRIPT} ${WRKSRC}/cups-config ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/cups/libcups.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_MAN} ${WRKSRC}/man/cups-config.man ${STAGEDIR}${PREFIX}/man/man1/cups-config.1 .elif defined(CUPS_IMAGE) ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcupsimage.so.2 .else ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcupscgi.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcupsppdc.so.1 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcupsmime.so.1 ${LN} -sf lpr ${STAGEDIR}${PREFIX}/bin/lpr-cups ${MKDIR} ${STAGEDIR}${ETCDIR}/ .for f in cupsd.conf mime.convs mime.types snmp.conf test -f ${STAGEDIR}${ETCDIR}/${f} && ${RM} -f ${STAGEDIR}${ETCDIR}/${f} || ${TRUE} ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${STAGEDIR}${ETCDIR}/${f}.sample .endfor @${MV} ${STAGEDIR}${ETCDIR}/cups-files.conf ${STAGEDIR}${ETCDIR}/cups-files.conf.sample @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKDIR}/ulpt-cupsd.conf ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_SCRIPT} ${WRKDIR}/ulpt-cupsd.sh ${STAGEDIR}${PREFIX}/sbin/ .endif .include diff --git a/print/cups-cloud-print/Makefile b/print/cups-cloud-print/Makefile index 37a9a6e2a7b6..fcb4c4aec0b7 100644 --- a/print/cups-cloud-print/Makefile +++ b/print/cups-cloud-print/Makefile @@ -1,32 +1,31 @@ # $FreeBSD$ PORTNAME= cups-cloud-print PORTVERSION= 0.0.1 CATEGORIES= print MAINTAINER= ports@FreeBSD.org COMMENT= Print using Google Cloud Print LICENSE= GPLv3 BUILD_DEPENDS= cancel:${PORTSDIR}/print/cups-base RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cups>=0:${PORTSDIR}/print/py-cups \ ${PYTHON_PKGNAMEPREFIX}httplib2>=0:${PORTSDIR}/www/py-httplib2 \ cancel:${PORTSDIR}/print/cups-base USE_GITHUB= yes GH_ACCOUNT= simoncadman GH_PROJECT= CUPS-Cloud-Print GH_COMMIT= d7ce53b GH_TAGNAME= ${GH_COMMIT} HAS_CONFIGURE= yes -USE_PYTHON= yes -USES= gmake shebangfix +USES= gmake python shebangfix SHEBANG_FILES= full-test.sh #CONFIGURE_ARGS= --cupsgroup=cups MAKE_ARGS= NOPERMS=1 .include diff --git a/print/dot2tex/Makefile b/print/dot2tex/Makefile index 1c6e1b0f40e4..b3fd70de5b89 100644 --- a/print/dot2tex/Makefile +++ b/print/dot2tex/Makefile @@ -1,21 +1,20 @@ # Created by: Romain Tartiere # $FreeBSD$ PORTNAME= dot2tex PORTVERSION= 2.8.7 PORTREVISION= 1 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} MAINTAINER= romain@FreeBSD.org COMMENT= Graphviz to LaTeX converter RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyparsing.py:${PORTSDIR}/devel/py-parsing \ dot:${PORTSDIR}/graphics/graphviz -USE_PYDISTUTILS=yes -USE_PYTHON= yes # The .tar.gz sucks! -USES= zip +USES= python zip +USE_PYTHON= distutils autoplist .include diff --git a/print/frescobaldi/Makefile b/print/frescobaldi/Makefile index 7a5622b78a9f..9bc2fbba113c 100644 --- a/print/frescobaldi/Makefile +++ b/print/frescobaldi/Makefile @@ -1,29 +1,27 @@ # Created by: martin.dieringer@gmx.de # $FreeBSD$ PORTNAME= frescobaldi PORTVERSION= 2.0.15 PORTREVISION= 2 CATEGORIES= print kde MASTER_SITES= https://github.com/wbsoft/frescobaldi/releases/download/v${PORTVERSION}/ MAINTAINER= martin.dieringer@gmx.de COMMENT= Music score editor for lilypond LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual RUN_DEPENDS= lilypond:${PORTSDIR}/print/lilypond \ ${PYTHON_PKGNAMEPREFIX}poppler-qt4>=0:${PORTSDIR}/graphics/py-poppler-qt4 -USES= gettext +USES= gettext python INSTALLS_ICONS= yes USE_KDE4= kdeprefix kdelibs pykde4_build pykde4_run -USE_PYTHON= yes -USE_PYDISTUTILS=yes -PYDISTUTILS_AUTOPLIST=yes +USE_PYTHON= distutils autoplist post-patch: @${REINPLACE_CMD} '/install-script=frescobaldi-wininst.py/d' ${WRKSRC}/setup.cfg .include diff --git a/print/gnome-specimen/Makefile b/print/gnome-specimen/Makefile index b26046dced2f..7935808c8b82 100644 --- a/print/gnome-specimen/Makefile +++ b/print/gnome-specimen/Makefile @@ -1,24 +1,23 @@ # Created by: Steve Wills # $FreeBSD$ PORTNAME= gnome-specimen PORTVERSION= 0.4 PORTREVISION= 4 CATEGORIES= print MASTER_SITES= http://uwstopia.nl/geek/projects/gnome-specimen/releases/ MAINTAINER= swills@FreeBSD.org COMMENT= Gnome Specimen is a simple tool to preview and compare installed fonts GNU_CONFIGURE= yes USE_GNOME= pygnomedesktop GCONF_SCHEMAS= gnome-specimen.schemas -USE_PYTHON= yes -USES= gettext gmake +USES= gettext gmake python USE_AUTOTOOLS= automake:env INSTALLS_ICONS= yes post-configure: @${INSTALL_SCRIPT} ${AUTOMAKE_DIR}/py-compile ${WRKSRC} .include diff --git a/print/hplip-plugin/Makefile b/print/hplip-plugin/Makefile index bef85f2612cd..855828cf58ba 100644 --- a/print/hplip-plugin/Makefile +++ b/print/hplip-plugin/Makefile @@ -1,78 +1,78 @@ # Created by: amistry@am-productions.biz # $FreeBSD$ PORTNAME= hplip-plugin PORTVERSION= 3.14.4 PORTREVISION= 1 CATEGORIES= print MASTER_SITES= http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/ DISTNAME= hplip-${DISTVERSION}-plugin EXTRACT_SUFX= .run MAINTAINER= makc@FreeBSD.org COMMENT= Binary plugin for some HP Printers and All-in-One devices RUN_DEPENDS= hp-plugin:${PORTSDIR}/print/hplip RESTRICTED= License agreement is required -USE_PYTHON= yes +USES= python NO_BUILD= yes WRKSRC= ${WRKDIR}/plugin_tmp HPLIP_FAKEDIR= ${WRKDIR}/hplip_fakedir ONLY_FOR_ARCHS= amd64 i386 PLUGIN_LINKS= fax/plugins/fax_marvell \ prnt/plugins/hbpl1 \ prnt/plugins/lj \ scan/plugins/bb_marvell \ scan/plugins/bb_soap \ scan/plugins/bb_soapht PLUGIN_DIRS= data/firmware \ data/plugins \ fax/plugins \ prnt/plugins \ scan/plugins PLIST_SUB+= LINARCH="${LINARCH}" .include .if ${ARCH} == "i386" LINARCH= x86_32 .elif ${ARCH} == "amd64" LINARCH= x86_64 .endif do-extract: @${MKDIR} ${WRKDIR} @cd ${WRKDIR} && ${SH} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} --keep --noexec post-patch: ${REINPLACE_CMD} -e 's|ok, ans = tui.enter_yes_no.*|ok, ans = 1, 1|' \ ${WRKSRC}/plugin_install.py ${REINPLACE_CMD} -e 's|rules,||;s|rules_alt,||' ${WRKSRC}/plugin.spec ${REINPLACE_CMD} -e 's|/etc/hp|${HPLIP_FAKEDIR}|g' \ ${WRKSRC}/plugin_install.py do-install: # fake hplip installation ${MKDIR} ${HPLIP_FAKEDIR} ${SED} -e 's,${LOCALBASE}/share/hplip,${HPLIP_FAKEDIR},' \ ${LOCALBASE}/etc/hp/hplip.conf > ${HPLIP_FAKEDIR}/hplip.conf ${MKDIR} ${HPLIP_FAKEDIR} ${LN} -sf ${LOCALBASE}/share/hplip/base ${HPLIP_FAKEDIR} ${LN} -sf ${LOCALBASE}/share/hplip/prnt ${HPLIP_FAKEDIR} ${CP} -R ${LOCALBASE}/share/hplip/installer ${HPLIP_FAKEDIR} ${REINPLACE_CMD} -e 's,HOMEDIR = .*,HOMEDIR = "${STAGEDIR}${PREFIX}/share/hplip",' \ ${HPLIP_FAKEDIR}/installer/pluginhandler.py # install hplip-plugin ${MKDIR} ${PLUGIN_DIRS:S,^,${STAGEDIR}${PREFIX}/share/hplip/,} (cd ${WRKSRC} && ${PYTHON_CMD} -B plugin_install.py) .for i in ${PLUGIN_LINKS} ${LN} -sf ${i:T}-${LINARCH}.so ${STAGEDIR}${PREFIX}/share/hplip/${i}.so .endfor .include diff --git a/print/lilypond-devel/Makefile b/print/lilypond-devel/Makefile index 8348dd93046c..fa2358f149cf 100644 --- a/print/lilypond-devel/Makefile +++ b/print/lilypond-devel/Makefile @@ -1,95 +1,94 @@ # Created by: patrick, trevor # $FreeBSD$ PORTNAME= lilypond PORTVERSION= 2.19.11 PORTREVISION= 2 CATEGORIES= print audio MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/ PKGNAMESUFFIX= -devel MAINTAINER= gahr@FreeBSD.org COMMENT= The GNU music typesetter LICENSE= GPLv3 BUILD_DEPENDS= pdftexi2dvi:${PORTSDIR}/print/texinfo \ t1ascii:${PORTSDIR}/print/t1utils \ bash:${PORTSDIR}/shells/bash \ convert:${PORTSDIR}/graphics/ImageMagick \ dblatex:${PORTSDIR}/textproc/dblatex \ fontforge:${PORTSDIR}/print/fontforge \ help2man:${PORTSDIR}/misc/help2man \ pngtopnm:${PORTSDIR}/graphics/netpbm \ rsync:${PORTSDIR}/net/rsync \ texi2html:${PORTSDIR}/textproc/texi2html \ zip:${PORTSDIR}/archivers/zip \ ${LOCALBASE}/share/ghostscript/fonts/c059033l.pfb:${PORTSDIR}/print/gsfonts RUN_DEPENDS= mftrace:${PORTSDIR}/print/mftrace \ ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans-Bold.ttf:${PORTSDIR}/x11-fonts/dejavu LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile \ libgmp.so:${PORTSDIR}/math/gmp \ libfreetype.so:${PORTSDIR}/print/freetype2 INFO= internals \ lilypond-changes \ lilypond-contributor \ lilypond-essay \ lilypond-extending \ lilypond-internals \ lilypond-learning \ lilypond-notation \ lilypond-snippets \ lilypond-usage \ lilypond-web \ music-glossary -USES= bison:build gettext gmake pkgconfig perl5 compiler:c++11-lib +USES= bison:build gettext gmake pkgconfig perl5 compiler:c++11-lib python:-3 USE_CXXSTD= c++11 USE_GHOSTSCRIPT=9 USE_TEX= latex -USE_PYTHON= -3 USE_PERL5= build USE_GNOME= pango MAKEFILE= GNUmakefile GNU_MAKEFILE= yes MAKE_JOBS_UNSAFE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts \ --with-python-include=${PYTHON_INCLUDEDIR} CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \ FLEX=${FLEX} YACC=${YACC} HOME=${WRKDIR} ALL_TARGET= all NO_CCACHE= yes PLIST_SUB= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= NLS .include .if ${PORT_OPTIONS:MNLS} PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " .endif post-patch: ${FIND} ${WRKSRC} -name "*.cc" | ${XARGS} \ ${REINPLACE_CMD} -e 's|isinf[ ]*(|::isinf(|g' -e 's|isnan|::isnan|g' ${REINPLACE_CMD} -e 's||"/usr/include/FlexLexer.h"|' \ ${WRKSRC}/lily/include/includable-lexer.hh .if !${PORT_OPTIONS:MNLS} ${REINPLACE_CMD} -e '/po \\$$/d' ${WRKSRC}/${MAKEFILE}.in .endif post-install: @${LN} -fs ${DATADIR}/${PORTVERSION} ${STAGEDIR}${DATADIR}/current .include diff --git a/print/lilypond/Makefile b/print/lilypond/Makefile index f80b3b0c885f..6cfa060f07fc 100644 --- a/print/lilypond/Makefile +++ b/print/lilypond/Makefile @@ -1,94 +1,93 @@ # Created by: patrick, trevor # $FreeBSD$ PORTNAME= lilypond PORTVERSION= 2.18.2 PORTREVISION= 2 CATEGORIES= print audio MASTER_SITES= http://download.linuxaudio.org/lilypond/sources/v${PORTVERSION:R}/ MAINTAINER= gahr@FreeBSD.org COMMENT= The GNU music typesetter LICENSE= GPLv3 OPTIONS_DEFINE= NLS BUILD_DEPENDS= pdftexi2dvi:${PORTSDIR}/print/texinfo \ t1ascii:${PORTSDIR}/print/t1utils \ bash:${PORTSDIR}/shells/bash \ convert:${PORTSDIR}/graphics/ImageMagick \ dblatex:${PORTSDIR}/textproc/dblatex \ fontforge:${PORTSDIR}/print/fontforge \ help2man:${PORTSDIR}/misc/help2man \ pngtopnm:${PORTSDIR}/graphics/netpbm \ rsync:${PORTSDIR}/net/rsync \ zip:${PORTSDIR}/archivers/zip \ texi2html:${PORTSDIR}/textproc/texi2html \ ${LOCALBASE}/share/ghostscript/fonts/c059033l.pfb:${PORTSDIR}/print/gsfonts RUN_DEPENDS= mftrace:${PORTSDIR}/print/mftrace \ ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans-Bold.ttf:${PORTSDIR}/x11-fonts/dejavu LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile \ libgmp.so:${PORTSDIR}/math/gmp \ libfreetype.so:${PORTSDIR}/print/freetype2 INFO= internals \ lilypond-changes \ lilypond-contributor \ lilypond-essay \ lilypond-extending \ lilypond-internals \ lilypond-learning \ lilypond-notation \ lilypond-snippets \ lilypond-usage \ lilypond-web \ music-glossary -USES= bison:build gettext gmake pkgconfig perl5 +USES= bison:build gettext gmake pkgconfig perl5 python:-3 USE_GHOSTSCRIPT=9 USE_TEX= latex -USE_PYTHON= -3 USE_PERL5= build USE_GNOME= pango MAKEFILE= GNUmakefile GNU_MAKEFILE= yes MAKE_JOBS_UNSAFE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-ncsb-dir=${LOCALBASE}/share/ghostscript/fonts \ --with-python-include=${PYTHON_INCLUDEDIR} CONFIGURE_ENV+= ac_cv_prog_MAKEINFO="${LOCALBASE}/bin/makeinfo" \ FLEX=${FLEX} YACC=${YACC} ALL_TARGET= all NO_CCACHE= yes PLIST_SUB= PORTVERSION=${PORTVERSION} .include .if ${PORT_OPTIONS:MNLS} PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " .endif post-patch: ${REINPLACE_CMD} -e 's||"/usr/include/FlexLexer.h"|' \ ${WRKSRC}/lily/include/includable-lexer.hh .if !${PORT_OPTIONS:MNLS} ${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}.in .endif post-install: @${LN} -fs ${DATADIR}/${PORTVERSION} ${STAGEDIR}${DATADIR}/current regression-test: build cd ${WRKSRC} && ${MAKE_CMD} -f ${MAKEFILE} test .include diff --git a/print/lyx/Makefile b/print/lyx/Makefile index 6fa76901c042..3e246ebcc424 100644 --- a/print/lyx/Makefile +++ b/print/lyx/Makefile @@ -1,48 +1,47 @@ # Created by: Klemm # $FreeBSD$ PORTNAME= lyx PORTVERSION= ${MAJOR_VERSION}.${MINOR_VERSION} CATEGORIES= print editors MASTER_SITES= ftp://ftp.lyx.org/pub/lyx/stable/${MAJOR_VERSION}.x/ \ http://www-ftp.lip6.fr/ftp/pub/lyx/stable/${MAJOR_VERSION}.x/ \ ftp://gd.tuwien.ac.at/publishing/tex/lyx/stable/${MAJOR_VERSION}.x/ \ ftp://ftp.ntua.gr/pub/X11/LyX/stable/${MAJOR_VERSION}.x/ \ http://sunsite.icm.edu.pl/pub/unix/editors/lyx/stable/${MAJOR_VERSION}.x/ \ ftp://ftp.chg.ru/pub/X11/lyx/stable/${MAJOR_VERSION}.x/ MAINTAINER= rakuco@FreeBSD.org COMMENT= Document processor interfaced with LaTeX (nearly WYSIWYG) LICENSE= GPLv2 LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs \ libmythes-1.2.so:${PORTSDIR}/textproc/mythes MAJOR_VERSION= 2.1 MINOR_VERSION= 2 -USES= desktop-file-utils gmake iconv pkgconfig perl5 tar:xz -USE_PYTHON= 2 +USES= desktop-file-utils gmake iconv pkgconfig perl5 python:2 tar:xz USE_QT4= corelib gui moc_build uic_build rcc_build GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-included-boost \ --without-included-mythes \ ${ICONV_CONFIGURE_ARG} \ --with-extra-prefix=${LOCALBASE} OPTIONS_DEFINE= ASPELL ENCHANT HUNSPELL NLS OPTIONS_DEFAULT= HUNSPELL NLS OPTIONS_SUB= yes ENCHANT_DESC= Spell checking using Enchant ASPELL_CONFIGURE_OFF= --without-aspell ASPELL_LIB_DEPENDS= libaspell.so:${PORTSDIR}/textproc/aspell ENCHANT_CONFIGURE_OFF= --without-enchant ENCHANT_LIB_DEPENDS= libenchant.so:${PORTSDIR}/textproc/enchant HUNSPELL_CONFIGURE_OFF= --without-hunspell HUNSPELL_LIB_DEPENDS= libhunspell-1.3.so:${PORTSDIR}/textproc/hunspell NLS_CONFIGURE_OFF= --disable-nls NLS_USES= gettext .include diff --git a/print/mftrace/Makefile b/print/mftrace/Makefile index 24c6ccaddc4b..f1bd238cedb3 100644 --- a/print/mftrace/Makefile +++ b/print/mftrace/Makefile @@ -1,48 +1,47 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= mftrace PORTVERSION= 1.2.18 PORTREVISION= 1 CATEGORIES= print MASTER_SITES= http://lilypond.org/download/sources/mftrace/ \ LOCAL/nivit/${PORTNAME}/ MAINTAINER= nivit@FreeBSD.org COMMENT= Scalable PostScript (Type1) Fonts for MetaFont RUN_DEPENDS= t1asm:${PORTSDIR}/print/t1utils \ fontforge:${PORTSDIR}/print/fontforge .if defined(WITH_AUTOTRACE) BUILD_DEPENDS+= autotrace:${PORTSDIR}/graphics/autotrace RUN_DEPENDS+= autotrace:${PORTSDIR}/graphics/autotrace .else BUILD_DEPENDS+= potrace:${PORTSDIR}/graphics/potrace RUN_DEPENDS+= potrace:${PORTSDIR}/graphics/potrace .endif # Python3 ready -USE_PYTHON= yes USE_TEX= base texmf GNU_CONFIGURE= yes -USES= gmake +USES= gmake python MAKEFILE= GNUmakefile PLIST_FILES= \ bin/gf2pbm \ bin/mftrace \ %%PYTHON_SITELIBDIR%%/afm.py \ %%PYTHON_SITELIBDIR%%/tfm.py \ man/man1/mftrace.1.gz do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gf2pbm ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/mftrace ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/mftrace.1 ${STAGEDIR}${MANPREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${INSTALL_SCRIPT} ${WRKSRC}/tfm.py ${STAGEDIR}${PYTHON_SITELIBDIR} ${INSTALL_SCRIPT} ${WRKSRC}/afm.py ${STAGEDIR}${PYTHON_SITELIBDIR} .include diff --git a/print/pkipplib/Makefile b/print/pkipplib/Makefile index 27247024f2d1..c71cf70b8d7e 100644 --- a/print/pkipplib/Makefile +++ b/print/pkipplib/Makefile @@ -1,15 +1,15 @@ # Created by: Rong-En Fan # $FreeBSD$ PORTNAME= pkipplib PORTVERSION= 0.07 CATEGORIES= print python MASTER_SITES= http://www.pykota.com/software/pkipplib/download/tarballs/ MAINTAINER= rafan@FreeBSD.org COMMENT= Create and parse IPP requests -USE_PYTHON= yes -USE_PYDISTUTILS=yes +USES= python +USE_PYTHON= distutils .include diff --git a/print/py-fonttools/Makefile b/print/py-fonttools/Makefile index da8f8b00ae14..9490204475f6 100644 --- a/print/py-fonttools/Makefile +++ b/print/py-fonttools/Makefile @@ -1,35 +1,34 @@ # Created by: Joseph Koshy # $FreeBSD$ PORTNAME= fonttools PORTVERSION= 2.4 PORTREVISION= 3 CATEGORIES= print python MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Open source library for manipulating fonts, written in Python BUILD_DEPENDS= ${PYNUMPY} ${PYXML} RUN_DEPENDS= ${PYNUMPY} ${PYXML} OPTIONS_DEFINE= DOCS -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist DOCSDIR= ${PREFIX}/share/doc/py-fonttools PORTDOCS= * post-patch: @${REINPLACE_CMD} -e 's|share/man/man1|man/man1|g' ${WRKSRC}/setup.py post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/ChangeLog ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/*.html ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${STAGEDIR}${DOCSDIR} .include diff --git a/print/py-pdf/Makefile b/print/py-pdf/Makefile index edf04b831464..b631830b1cfe 100644 --- a/print/py-pdf/Makefile +++ b/print/py-pdf/Makefile @@ -1,20 +1,18 @@ # Created by: Stefan Esser # $FreeBSD$ PORTNAME= pdf PORTVERSION= 1.13 PORTREVISION= 1 CATEGORIES= print python MASTER_SITES= http://pybrary.net/pyPdf/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= pyPdf-${PORTVERSION} MAINTAINER= jlaffaye@FreeBSD.org COMMENT= Pure-Python PDF toolkit -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_PKGNAME= pyPdf -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist .include diff --git a/print/py-pollyreports/Makefile b/print/py-pollyreports/Makefile index 00a7ce5a5e05..3cae0676efb2 100644 --- a/print/py-pollyreports/Makefile +++ b/print/py-pollyreports/Makefile @@ -1,25 +1,24 @@ # Created by: Jose Jachuf # $FreeBSD$ PORTNAME= PollyReports PORTVERSION= 1.7.6 CATEGORIES= print python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jjachuf@gmail.com COMMENT= Band-oriented PDF report generation from database query LICENSE= BSD2CLAUSE -USE_PYTHON= 2 -USE_PYDISTUTILS=yes -PYDISTUTILS_AUTOPLIST= yes +USES= python:2 +USE_PYTHON= distutils autoplist OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options OPTIONS_DEFINE= REPORTLAB REPORTLAB_DESC= Install Reportlab2 REPORTLAB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}reportlab2>=2.1:${PORTSDIR}/print/py-reportlab2 .include diff --git a/print/py-preppy/Makefile b/print/py-preppy/Makefile index 9310d5d90caf..74f9a9dd2c7a 100644 --- a/print/py-preppy/Makefile +++ b/print/py-preppy/Makefile @@ -1,19 +1,18 @@ # Created by: Kozlov Sergey # $FreeBSD$ PORTNAME= preppy PORTVERSION= 2.3.2 CATEGORIES= print python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kozlov.sergey.404@gmail.com COMMENT= ReportLab's templating system LICENSE= BSD3CLAUSE -USE_PYTHON= 2.7-3.3 -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python:2.7-3.3 +USE_PYTHON= distutils autoplist .include diff --git a/print/py-pyscript/Makefile b/print/py-pyscript/Makefile index 217bcfd820c1..4ba941c5b3e6 100644 --- a/print/py-pyscript/Makefile +++ b/print/py-pyscript/Makefile @@ -1,35 +1,35 @@ # Created by: Nicola Vitale # $FreeBSD$ PORTNAME= pyscript PORTVERSION= 0.6.1 PORTREVISION= 5 CATEGORIES= print graphics python MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Python module for producing high quality PostScript graphics LICENSE= GPLv2 OPTIONS_DEFINE= DOCS EXAMPLES PYSCRIPT_MANUAL=doc/manual/pyscript.pdf -USE_PYDISTUTILS=yes -USE_PYTHON= yes +USES= python +USE_PYTHON= distutils USE_TEX= latex dvipsk .include post-install: .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @(cd ${WRKSRC}/doc/examples; \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name Makefile") .endif @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PYSCRIPT_MANUAL} ${STAGEDIR}${DOCSDIR} .include diff --git a/print/py-relatorio/Makefile b/print/py-relatorio/Makefile index 3ed8bd12c2ca..cb85d57246a7 100644 --- a/print/py-relatorio/Makefile +++ b/print/py-relatorio/Makefile @@ -1,23 +1,22 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= relatorio PORTVERSION= 0.6.0 PORTREVISION= 1 CATEGORIES= print python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Templating library able to output odt and pdf files BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Genshi>=0.5:${PORTSDIR}/textproc/py-genshi \ ${PYTHON_PKGNAMEPREFIX}lxml>=2.2:${PORTSDIR}/devel/py-lxml RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycha>=0.5.0:${PORTSDIR}/graphics/py-pycha \ ${PYTHON_PKGNAMEPREFIX}yaml>=3.07:${PORTSDIR}/devel/py-yaml -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist .include diff --git a/print/py-reportlab/Makefile b/print/py-reportlab/Makefile index 45eb3ee69908..cfaa97c4239e 100644 --- a/print/py-reportlab/Makefile +++ b/print/py-reportlab/Makefile @@ -1,77 +1,76 @@ # Created by: Thomas Gellekum # $FreeBSD$ PORTNAME= reportlab PORTVERSION= 3.0 PORTREVISION= 1 CATEGORIES= print python MASTER_SITES= CHEESESHOP \ http://www.reportlab.com/ftp/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ ${PFBFER} EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= 5u623l20@gmail.com COMMENT= Library to create PDF documents using the Python language LICENSE= BSD RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist CONFLICTS= py*-reportlab[^3]-[^3].* \ py*-reportlab-[^3].* PORTSCOUT= limit:^3\.0\. PFBFER_VERSION= 20070710 PFBFER= pfbfer-${PFBFER_VERSION}.zip MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}" REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} DOCS= reportlab-userguide.pdf OPTIONS_DEFINE= CJK FREETYPE DOCS OPTIONS_DEFAULT= CJK FREETYPE CJK_DESC= Adobe CMaps FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 .include .if ${ARCH} == "sparc64" BROKEN= Does not install on sparc64 .endif .if ${PORT_OPTIONS:MCJK} RUN_DEPENDS+= ${LOCALBASE}/share/fonts/adobe-cmaps/ac15/cid2code.txt:${PORTSDIR}/print/adobe-cmaps .endif post-patch: @${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|' \ -e 's|%%PFBFER%%|${PFBFER}|' \ ${WRKSRC}/setup.py .if ${PORT_OPTIONS:MDOCS} .for f in genAll.py userguide/genuserguide.py @${REINPLACE_CMD} -e 's|%%STAGEDIR%%|${STAGEDIR}|' \ -e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|' \ ${WRKSRC}/docs/${f} .endfor .endif post-install: .if ${PORT_OPTIONS:MDOCS} @cd ${WRKSRC}/docs && ${PYTHON_CMD} genAll.py @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif .include diff --git a/print/py-reportlab1/Makefile b/print/py-reportlab1/Makefile index 94840d99cb4f..66cab959e0c6 100644 --- a/print/py-reportlab1/Makefile +++ b/print/py-reportlab1/Makefile @@ -1,51 +1,49 @@ # Created by: Thomas Gellekum # $FreeBSD$ PORTNAME= reportlab PORTVERSION= 1.21.2 PORTREVISION= 3 CATEGORIES= print python MASTER_SITES= http://www.reportlab.com/ftp/ \ ${MASTER_SITE_LOCAL:S/$/:accel/} \ http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/:accel MASTER_SITE_SUBDIR= erwin/:accel PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMESUFFIX= 1 DISTFILES= reportlab-${PORTVERSION}.tar.gz \ rl_accel-3004.tgz:accel MAINTAINER= 5u623l20@gmail.com COMMENT= Library to create PDF documents using the Python language CONFLICTS= py*-reportlab[^1]-[^1].* \ py*-reportlab-[^1].* PORTSCOUT= ignore:1 # Last version of 1.X branch -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes -PYDISTUTILS_PKGNAME= Reportlab +USES= python +USE_PYTHON= distutils autoplist WRKSRC= ${WRKDIR}/reportlab_${PORTVERSION:S/./_/g}/reportlab MAKE_ENV= PACKAGE_PATH="${REPORTLABDIR}" REPORTLABDIR= ${PYTHONPREFIX_SITELIBDIR}/reportlab DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX} PORTDOCS= RML_UserGuide.pdf RML_UserGuide_1_0.pdf diagradoc.pdf graphguide.pdf \ graphics_reference.pdf reference.pdf userguide.pdf OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rl_config.py @${REINPLACE_CMD} -e 's#with#with26#g' ${WRKSRC}/lib/PyFontify.py post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${CP} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} .endfor @${CAT} ${PKGMESSAGE} .include diff --git a/print/py-rtf/Makefile b/print/py-rtf/Makefile index 4c493a114358..542c8df2c96d 100644 --- a/print/py-rtf/Makefile +++ b/print/py-rtf/Makefile @@ -1,25 +1,24 @@ # Created by: Thomas Gellekum # $FreeBSD$ PORTNAME= rtf PORTVERSION= 0.45 CATEGORIES= print python MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= PyRTF-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Library to create RTF documents using the Python language -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist EXAMPLESDIR= ${PREFIX}/share/examples/py-rtf PORTEXAMPLES= * post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/print/ttfquery/Makefile b/print/ttfquery/Makefile index 2470802b6b0e..12d3a2d06dcc 100644 --- a/print/ttfquery/Makefile +++ b/print/ttfquery/Makefile @@ -1,24 +1,23 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= ttfquery PORTVERSION= 1.0.5 PORTREVISION= 4 CATEGORIES= print MASTER_SITES= CHEESESHOP DISTNAME= TTFQuery-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= FontTools-based package for querying system fonts LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/license.txt RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fonttools>0:${PORTSDIR}/print/py-fonttools \ ${PYNUMPY} -USE_PYTHON= yes -USE_PYDISTUTILS= yes -PYDISTUTILS_AUTOPLIST= yes +USES= python +USE_PYTHON= distutils autoplist .include