1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

databases/p5-Search-Xapian: Convert REINPLACE_CMD to patch file

This commit is contained in:
Po-Chuan Hsieh 2024-04-13 17:28:57 +08:00
parent f70da067ae
commit 06ba4fcc3b
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 11 additions and 3 deletions

View File

@ -26,9 +26,6 @@ CONFIGURE_ARGS= XAPIAN_CONFIG=${LOCALBASE}/bin/xapian-config
CONFLICTS_INSTALL= p5-Search-Xapian12 # lib/perl5/site_perl/mach/5.32/Search/Xapian.pm
post-patch:
@${REINPLACE_CMD} -e 's|^if (defined $$builddir) {|if (0) {|' ${WRKSRC}/Makefile.PL
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Search/Xapian/Xapian.so

View File

@ -0,0 +1,11 @@
--- Makefile.PL.orig 2020-11-22 06:53:13 UTC
+++ Makefile.PL
@@ -268,7 +268,7 @@ if (scalar @bad) {
# If we're doing a fake VPATH build, add a stub Makefile which forwards all
# invocations (.DEFAULT is a GNU-make-ism).
-if (defined $builddir) {
+if (0) {
open M, '>', "$builddir/Makefile~" or die $!;
print M <<"EOF";
all .DEFAULT: