aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-10-22 15:21:01 +0800
committerrm <rm@FreeBSD.org>2012-10-22 15:21:01 +0800
commit6b46d91504987d8bd3037035c23629009e6f16a8 (patch)
treef2503a11c3d8f22c81774bf4e5c805841c43f94c /www
parent625903ad504c514c3058abd59272fd26338cc6d0 (diff)
downloadfreebsd-ports-gnome-6b46d91504987d8bd3037035c23629009e6f16a8.tar.gz
freebsd-ports-gnome-6b46d91504987d8bd3037035c23629009e6f16a8.tar.zst
freebsd-ports-gnome-6b46d91504987d8bd3037035c23629009e6f16a8.zip
- replace direct setuptools dependency with USE_DISTUTILS=easy_install
- bump PORTREVISION because USE_DISTUTILS implies both build and run dependency on setuptools - trim Makefile header - tune PYDISTUTILS_* variables and rely upon bsd.python.mk code instead of implementing the same stuff manually - tab -> space change in pkg-descr:WWW - move pkg-plist contents into Makefile:PLIST_FILES PR: 172858 Submitted by: rm (myself) Approved by: Radim Kolar <hsn at sendmail dot cz> (maintainer) Feature safe: yes
Diffstat (limited to 'www')
-rw-r--r--www/trac-bzr/Makefile27
-rw-r--r--www/trac-bzr/pkg-descr2
-rw-r--r--www/trac-bzr/pkg-plist4
3 files changed, 10 insertions, 23 deletions
diff --git a/www/trac-bzr/Makefile b/www/trac-bzr/Makefile
index fc63d504f497..c79592557cda 100644
--- a/www/trac-bzr/Makefile
+++ b/www/trac-bzr/Makefile
@@ -1,13 +1,9 @@
-# New ports collection makefile for: trac-bzr
-# Date created: 2007-03-30
-# Whom: Radim Kolar <hsn@sanatana.dharma>
-#
+# Created by: Radim Kolar <hsn@sanatana.dharma>
# $FreeBSD$
-#
PORTNAME= bzr
PORTVERSION= 20110228
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://schema.filez.com/distfiles/
PKGNAMEPREFIX= trac-
@@ -18,20 +14,15 @@ COMMENT= Bazaar-NG plugin for Trac
LICENSE= GPLv2
-BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
-RUN_DEPENDS= tracd:${PORTSDIR}/www/trac bzr:${PORTSDIR}/devel/bzr
-
-USE_PYTHON= -2.7
-USE_PYDISTUTILS= yes
-PYDISTUTILS_NOEGGINFO= yes
+RUN_DEPENDS= tracd:${PORTSDIR}/www/trac \
+ bzr:${PORTSDIR}/devel/bzr
USE_BZIP2= yes
-
-PLIST_SUB= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
- PYTRAC_BZR_EGG=${PYTRAC_BZR_EGG}
-
-EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
-PYTRAC_BZR_EGG= TracBzr-0.4.2-py${PYTHON_VER}.egg
+USE_PYTHON= -2.7
+USE_PYDISTUTILS=easy_install
+PYDISTUTILS_PKGNAME= TracBzr
+PYDISTUTILS_PKGVERSION= 0.4.2
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
post-patch:
${REINPLACE_CMD} -e 's|tag_date = 1||' ${WRKSRC}/setup.cfg
diff --git a/www/trac-bzr/pkg-descr b/www/trac-bzr/pkg-descr
index 19d408546f9f..a3d198864199 100644
--- a/www/trac-bzr/pkg-descr
+++ b/www/trac-bzr/pkg-descr
@@ -1,4 +1,4 @@
Trac-Bzr is a plugin for Trac (>= 0.10) that provides a
version control backend for Bzr.
-WWW: https://launchpad.net/trac-bzr
+WWW: https://launchpad.net/trac-bzr
diff --git a/www/trac-bzr/pkg-plist b/www/trac-bzr/pkg-plist
deleted file mode 100644
index fc0f195d6368..000000000000
--- a/www/trac-bzr/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-@comment $FreeBSD$
-@unexec %%EASY_INSTALL_CMD%% -q -m -N %D/%%PYTHON_SITELIBDIR%%/%%PYTRAC_BZR_EGG%%
-%%PYTHON_SITELIBDIR%%/%%PYTRAC_BZR_EGG%%
-@exec %%EASY_INSTALL_CMD%% -N %D/%%PYTHON_SITELIBDIR%%/%%PYTRAC_BZR_EGG%%