aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/py-librtfcomp
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-10-09 23:24:39 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-10-09 23:24:39 +0800
commit747f2f035ac1b6b25fa0552aece8f5a8abd18de0 (patch)
tree2c6a1464df484c031ce60497d5e4617673b86634 /archivers/py-librtfcomp
parentec87b5ca9125914a92db988b0cd72846a5acb015 (diff)
downloadfreebsd-ports-gnome-747f2f035ac1b6b25fa0552aece8f5a8abd18de0.tar.gz
freebsd-ports-gnome-747f2f035ac1b6b25fa0552aece8f5a8abd18de0.tar.zst
freebsd-ports-gnome-747f2f035ac1b6b25fa0552aece8f5a8abd18de0.zip
- Convert from slave port to normal port
Diffstat (limited to 'archivers/py-librtfcomp')
-rw-r--r--archivers/py-librtfcomp/Makefile22
-rw-r--r--archivers/py-librtfcomp/distinfo2
2 files changed, 18 insertions, 6 deletions
diff --git a/archivers/py-librtfcomp/Makefile b/archivers/py-librtfcomp/Makefile
index a437ed274c48..bcedf7703179 100644
--- a/archivers/py-librtfcomp/Makefile
+++ b/archivers/py-librtfcomp/Makefile
@@ -1,7 +1,11 @@
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
-PORTREVISION= 2
+PORTNAME= librtfcomp
+PORTVERSION= 1.3
+PORTREVISION= 3
+CATEGORIES= archivers python
+MASTER_SITES= SF/synce/SynCE/${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
@@ -12,16 +16,22 @@ LICENSE= LGPL21
BUILD_DEPENDS= ${LOCALBASE}/bin/pyrexc:${PORTSDIR}/devel/pyrex
LIB_DEPENDS= librtfcomp.so:${PORTSDIR}/archivers/librtfcomp
-USES= python:2
+CONFIGURE_ARGS= --enable-python-bindings
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+USES= libtool python:2
BUILD_WRKSRC= ${WRKSRC}/python
INSTALL_WRKSRC= ${WRKSRC}/python
-PLIST= ${NONEXISTENT}
PLIST_FILES= %%PYTHON_SITELIBDIR%%/pyrtfcomp.a \
%%PYTHON_SITELIBDIR%%/pyrtfcomp.so
-MASTERDIR= ${.CURDIR}/../librtfcomp
-SLAVEPORT= py
+post-patch:
+ @${REINPLACE_CMD} -e '/VISIBILITY=/ s| -fvisibility=hidden||' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|[^ ]*/src/librtfcomp\.la||' ${WRKSRC}/python/Makefile.in
-.include "${MASTERDIR}/Makefile"
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyrtfcomp.so
+
+.include <bsd.port.mk>
diff --git a/archivers/py-librtfcomp/distinfo b/archivers/py-librtfcomp/distinfo
new file mode 100644
index 000000000000..5b1caa7d891b
--- /dev/null
+++ b/archivers/py-librtfcomp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (librtfcomp-1.3.tar.gz) = 5ade6031956e2bdc3b6b2024bf658459d4d381e33bb5e59264f30eefc8a5f3b4
+SIZE (librtfcomp-1.3.tar.gz) = 328891