diff options
author | Nicola Vitale <nivit@FreeBSD.org> | 2006-12-31 13:30:35 +0000 |
---|---|---|
committer | Nicola Vitale <nivit@FreeBSD.org> | 2006-12-31 13:30:35 +0000 |
commit | f0bf4f5338153f65e1012e56f4494a3e8bea5306 (patch) | |
tree | 711f03ede82e3b2a1ad4408bb931efec596b1340 | |
parent | e9ec5332f63e3fc9bd2f2fd592b9475fd432557b (diff) | |
download | ports-f0bf4f5338153f65e1012e56f4494a3e8bea5306.tar.gz ports-f0bf4f5338153f65e1012e56f4494a3e8bea5306.zip |
- Added files/pkg-deinstall files/pkg-install
- Added variable PYPASTE_EGG
Approved by: alexbl (mentor), dryice (maintainer)
Notes
Notes:
svn path=/head/; revision=181141
-rw-r--r-- | www/py-paste/Makefile | 6 | ||||
-rw-r--r-- | www/py-paste/files/pkg-deinstall.in | 17 | ||||
-rw-r--r-- | www/py-paste/files/pkg-install.in | 16 |
3 files changed, 39 insertions, 0 deletions
diff --git a/www/py-paste/Makefile b/www/py-paste/Makefile index 39cea163cac0..9eb3f31107a4 100644 --- a/www/py-paste/Makefile +++ b/www/py-paste/Makefile @@ -25,4 +25,10 @@ PYTHONVER?= ${_PYTHON_VERSION} PLIST_SUB= PASTEVER=${PASTEVER} \ PYTHONVER=${PYTHONVER} +SUB_FILES+= pkg-deinstall pkg-install +SUB_LIST+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \ + EGG="${PORTNAME}==${PORTVERSION}" + +PYPASTE_EGG= ${PORTNAME}-${PORTVERSION}-${PYTHON_VERSION:S/^python//}.egg + .include <bsd.port.mk> diff --git a/www/py-paste/files/pkg-deinstall.in b/www/py-paste/files/pkg-deinstall.in new file mode 100644 index 000000000000..c2a4012d7b2e --- /dev/null +++ b/www/py-paste/files/pkg-deinstall.in @@ -0,0 +1,17 @@ +#!/bin/sh +# $FreeBSD$ +PKGNAME=$1 +# +case $2 in + DEINSTALL) + easy_install -q -N -m -x -S %%PYTHON_SITELIBDIR%% %%EGG%% + ;; + POST-DEINSTALL) + exit 0 + ;; + *) + echo "Unexpected Argument $2!!!" + exit 1 + ;; +esac +exit 0 diff --git a/www/py-paste/files/pkg-install.in b/www/py-paste/files/pkg-install.in new file mode 100644 index 000000000000..9cddbe28f167 --- /dev/null +++ b/www/py-paste/files/pkg-install.in @@ -0,0 +1,16 @@ +#!/bin/sh +# $FreeBSD$ +PKGNAME=$1 +# +case $2 in + POST-INSTALL) + easy_install -q -N -S %%PYTHON_SITELIBDIR%% %%EGG%% + ;; + PRE-INSTALL) + ;; + *) + echo "Unexpected Argument $2!!!" + exit 1 + ;; +esac +exit 0 |