1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Stagify, remove NOPORTDOCS & NOPORTEXAMPLES

This commit is contained in:
Vanilla I. Shu 2014-07-08 13:31:13 +00:00
parent 403d5e11a8
commit caf48a8384
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361236
2 changed files with 31 additions and 16 deletions

View File

@ -11,18 +11,16 @@ DISTFILES= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX}:onig \
DIST_SUBDIR= ruby DIST_SUBDIR= ruby
EXTRACT_ONLY= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX} EXTRACT_ONLY= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= BSDL Regular Expressions library compatible with POSIX/GNU/Perl COMMENT= BSDL Regular Expressions library compatible with POSIX/GNU/Perl
WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}
NO_LATEST_LINK= yes NO_LATEST_LINK= yes
CONFLICTS_INSTALL= oniguruma-4.* CONFLICTS_INSTALL= oniguruma-4.*
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
DOCS= HISTORY README doc/* DOCS= HISTORY README doc/*
OPTIONS_DEFINE= DOCS EXAMPLES
NO_STAGE= yes
post-patch: post-patch:
${CP} ${DISTDIR}/${DIST_SUBDIR}/ruby187p248-oniguruma.patch \ ${CP} ${DISTDIR}/${DIST_SUBDIR}/ruby187p248-oniguruma.patch \
${WRKSRC}/ruby187.patch ${WRKSRC}/ruby187.patch
@ -32,16 +30,12 @@ post-configure:
${FILESDIR}/onig-config > ${WRKSRC}/onig-config ${FILESDIR}/onig-config > ${WRKSRC}/onig-config
post-install: post-install:
${INSTALL_SCRIPT} ${WRKSRC}/onig-config ${PREFIX}/bin/ ${INSTALL_SCRIPT} ${WRKSRC}/onig-config ${STAGEDIR}${PREFIX}/bin/
.if !defined(NOPORTDOCS) ${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${DOCSDIR}
.for f in ${DOCS} .for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor .endfor
.endif ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.if !defined(NOPORTEXAMPLES) ${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}/
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR}/
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,6 +1,27 @@
--- Makefile.in.orig 2006-11-08 08:45:50.000000000 +0300 --- Makefile.in.orig 2006-11-08 13:45:50.000000000 +0800
+++ Makefile.in 2009-02-12 18:37:58.000000000 +0300 +++ Makefile.in 2014-07-08 21:29:18.562095970 +0800
@@ -214,6 +214,9 @@ @@ -146,13 +146,13 @@ make_enc_dir:
test -d enc || mkdir enc
install: all
- test -d $(libdir) || mkdir $(libdir)
- test -d $(includedir) || mkdir $(includedir)
- $(INSTALL) -m 644 $(libname) $(libdir)/$(libname)
- $(RANLIB) $(libdir)/$(libname)
- $(INSTALL) -m 644 $(srcdir)/oniguruma.h $(includedir)/oniguruma.h
- $(INSTALL) -m 644 $(srcdir)/onigposix.h $(includedir)/onigposix.h
- $(INSTALL) -m 644 $(srcdir)/oniggnu.h $(includedir)/oniggnu.h
+ test -d $(DESTDIR)$(libdir) || mkdir $(DESTDIR)$(libdir)
+ test -d $(DESTDIR)$(includedir) || mkdir $(DESTDIR)$(includedir)
+ $(INSTALL) -m 644 $(libname) $(DESTDIR)$(libdir)/$(libname)
+ $(RANLIB) $(DESTDIR)$(libdir)/$(libname)
+ $(INSTALL) -m 644 $(srcdir)/oniguruma.h $(DESTDIR)$(includedir)/oniguruma.h
+ $(INSTALL) -m 644 $(srcdir)/onigposix.h $(DESTDIR)$(includedir)/onigposix.h
+ $(INSTALL) -m 644 $(srcdir)/oniggnu.h $(DESTDIR)$(includedir)/oniggnu.h
uninstall:
-rm -f $(libdir)/$(libname)
@@ -214,6 +214,9 @@ distclean: clean
185: cpruby 185: cpruby
patch -d $(RUBYDIR) -p0 < $(srcdir)/ruby185.patch patch -d $(RUBYDIR) -p0 < $(srcdir)/ruby185.patch