Convert REINPLACE_CMD to patch file

This commit is contained in:
Sunpoet Po-Chuan Hsieh
2020-02-08 19:01:35 +00:00
parent c8318b5307
commit 4723f93aa5
2 changed files with 13 additions and 4 deletions

View File

@@ -13,13 +13,11 @@ COMMENT= Library for handling compressed RTF documents
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENCE
USES= libtool
CONFIGURE_ARGS= --disable-python-bindings
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= libtool
post-patch:
@${REINPLACE_CMD} -e '/VISIBILITY=/ s| -fvisibility=hidden||' ${WRKSRC}/configure
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tests/fromrtf ${STAGEDIR}${PREFIX}/bin/fromrtf

View File

@@ -0,0 +1,11 @@
--- configure.orig 2013-07-25 13:05:57 UTC
+++ configure
@@ -11253,7 +11253,7 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test x"$have_gccvisibility" = x"yes"; then
- VISIBILITY="-DHAVE_GCCVISIBILITY -fvisibility=hidden"
+ VISIBILITY="-DHAVE_GCCVISIBILITY"
fi