diff options
author | rm <rm@FreeBSD.org> | 2012-12-26 18:03:58 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2012-12-26 18:03:58 +0800 |
commit | 696c165f4c8b4c0684dc7d487b99acf38fae7d04 (patch) | |
tree | fe5d2d2acc92c4799dd848c3a9ad9ddfdbc2a7dd /www | |
parent | 6f7120c156594b018022bc401bbe182973abd44a (diff) | |
download | freebsd-ports-gnome-696c165f4c8b4c0684dc7d487b99acf38fae7d04.tar.gz freebsd-ports-gnome-696c165f4c8b4c0684dc7d487b99acf38fae7d04.tar.zst freebsd-ports-gnome-696c165f4c8b4c0684dc7d487b99acf38fae7d04.zip |
- do not directly depend on setuptools, use USE_DISTUTILS instead
- bump PORTREVISION because of dependency change
- trim Makefile header
- remove indefinite article in COMMENT
- limit python version to 2.x only
- remove permissions fixing part - setuptools will take care of it
- move pkg-plist contents into Makefile:PLIST_FILES
PR: 173163
Submitted by: rm (myself)
Approved by: maintainer timeout (~2 months)
Diffstat (limited to 'www')
-rw-r--r-- | www/trac-defaultcc/Makefile | 31 | ||||
-rw-r--r-- | www/trac-defaultcc/pkg-plist | 1 |
2 files changed, 6 insertions, 26 deletions
diff --git a/www/trac-defaultcc/Makefile b/www/trac-defaultcc/Makefile index 0e2c983bece0..ac507525b447 100644 --- a/www/trac-defaultcc/Makefile +++ b/www/trac-defaultcc/Makefile @@ -1,46 +1,27 @@ -# New ports collection makefile for: trac-autocomplete -# Date created: August 18, 2011 -# Whom: Eygene Ryabinkin <rea@FreeBSD.org> -# +# Created by: Eygene Ryabinkin <rea@FreeBSD.org> # $FreeBSD$ -# PORTNAME= defaultcc PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= http://dist.codelabs.ru/fbsd/trac-${PORTNAME}/ PKGNAMEPREFIX= trac- DISTNAME= ${PORTNAME}plugin-r${REL} MAINTAINER= rea@FreeBSD.org -COMMENT= A plugin that adds default CC value for tickets +COMMENT= Plugin that adds default CC value for tickets -BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac -USE_PYTHON= yes +USE_PYTHON= -2.7 USE_ZIP= yes -NO_BUILD= yes -USE_PYDISTUTILS= yes +USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= Default_CC -PYDISTUTILS_NOEGGINFO= yes +PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% WRKSRC= ${WRKDIR}/${PORTNAME}plugin/trunk REL= 10605 -PLIST_SUB+= PYTHON_VER=${PYTHON_VER} - -# We must fix file permissions -- ZIP file have 0000 for every file. -# Directory permissions are fine (they aren't stored inside ZIP -# file), but we set them too -- just in case. -post-extract: - @${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644 - @${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755 - -# Target to generate packaging list -plist: - @${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type f | ${SED} -e's|^${PYTHON_SITELIBDIR}/|%%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|' - @${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type d -mindepth 1 | ${SORT} -r | ${SED} -e's|^${PYTHON_SITELIBDIR}/|@dirrm %%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|' - @[ -d ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg ] && ${ECHO} '@dirrm %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg' .include <bsd.port.mk> diff --git a/www/trac-defaultcc/pkg-plist b/www/trac-defaultcc/pkg-plist deleted file mode 100644 index cf38919f1fcf..000000000000 --- a/www/trac-defaultcc/pkg-plist +++ /dev/null @@ -1 +0,0 @@ -%%PYTHON_SITELIBDIR%%/Default_CC-0.1-py%%PYTHON_VER%%.egg |