aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--textproc/py-sgrep/Makefile17
-rw-r--r--textproc/py-sgrep/distinfo3
-rw-r--r--textproc/py-sgrep/pkg-plist2
3 files changed, 15 insertions, 7 deletions
diff --git a/textproc/py-sgrep/Makefile b/textproc/py-sgrep/Makefile
index a2836dcab3b..3f6c4469600 100644
--- a/textproc/py-sgrep/Makefile
+++ b/textproc/py-sgrep/Makefile
@@ -7,17 +7,24 @@
#
PORTNAME= sgrep
-PORTVERSION= 1.0a
+PORTVERSION= ${SGREP_VER} # dont know ver, so I decide to choose sgrep ver
CATEGORIES= textproc python
-MASTER_SITES= http://www.rexx.com/~dkuhlman/
+MASTER_SITES= http://www.rexx.com/~dkuhlman/ \
+ ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= pysgrep-${PORTVERSION}
+DISTFILES= pysgrep.tar.gz sgrep-${SGREP_VER}.tar.gz
+EXTRACT_ONLY= sgrep-1.92a.tar.gz
-MAINTAINER= ijliao@freebsd.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Python wrappers for Sgrep
+SGREP_VER= 1.92a
+WRKSRC= ${WRKDIR}/sgrep-${SGREP_VER}
+GNU_CONFIGURE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-GNU_CONFIGURE= yes
+
+post-extract:
+ @${TAR} -zxf ${_DISTDIR}/pysgrep.tar.gz -C ${WRKSRC}
.include <bsd.port.mk>
diff --git a/textproc/py-sgrep/distinfo b/textproc/py-sgrep/distinfo
index c603d117000..1054fa69ef4 100644
--- a/textproc/py-sgrep/distinfo
+++ b/textproc/py-sgrep/distinfo
@@ -1 +1,2 @@
-MD5 (pysgrep-1.0a.tar.gz) = 106f1321b8e38d0cfbe7199870ff17a9
+MD5 (pysgrep.tar.gz) = c8fdd7c8a5e2599a03ce334e68705463
+MD5 (sgrep-1.92a.tar.gz) = 99eb1ed515648f653fc7be45e0896378
diff --git a/textproc/py-sgrep/pkg-plist b/textproc/py-sgrep/pkg-plist
index 735dfee319e..085ccbf5dd8 100644
--- a/textproc/py-sgrep/pkg-plist
+++ b/textproc/py-sgrep/pkg-plist
@@ -1 +1 @@
-lib/%%PYTHON_VERSION%%/site-packages/sgreplib.so
+%%PYTHON_SITELIBDIR%%/sgreplib.so