Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2014 13:31:13 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361236 - in head/devel/oniguruma: . files
Message-ID:  <201407081331.s68DVDQ7077459@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Tue Jul  8 13:31:13 2014
New Revision: 361236
URL: http://svnweb.freebsd.org/changeset/ports/361236
QAT: https://qat.redports.org/buildarchive/r361236/

Log:
  Stagify, remove NOPORTDOCS & NOPORTEXAMPLES

Modified:
  head/devel/oniguruma/Makefile
  head/devel/oniguruma/files/patch-Makefile.in

Modified: head/devel/oniguruma/Makefile
==============================================================================
--- head/devel/oniguruma/Makefile	Tue Jul  8 13:25:24 2014	(r361235)
+++ head/devel/oniguruma/Makefile	Tue Jul  8 13:31:13 2014	(r361236)
@@ -11,18 +11,16 @@ DISTFILES=	onigd${PORTVERSION:S/./_/g}${
 DIST_SUBDIR=	ruby
 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
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
-
 NO_LATEST_LINK=	yes
 CONFLICTS_INSTALL=	oniguruma-4.*
-
 GNU_CONFIGURE=	yes
 DOCS=		HISTORY README doc/*
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-NO_STAGE=	yes
 post-patch:
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/ruby187p248-oniguruma.patch \
 		${WRKSRC}/ruby187.patch
@@ -32,16 +30,12 @@ post-configure:
 		${FILESDIR}/onig-config > ${WRKSRC}/onig-config
 
 post-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/onig-config ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/onig-config ${STAGEDIR}${PREFIX}/bin/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
 .endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
-	${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR}/
-.endif
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}/
 
 .include <bsd.port.mk>

Modified: head/devel/oniguruma/files/patch-Makefile.in
==============================================================================
--- head/devel/oniguruma/files/patch-Makefile.in	Tue Jul  8 13:25:24 2014	(r361235)
+++ head/devel/oniguruma/files/patch-Makefile.in	Tue Jul  8 13:31:13 2014	(r361236)
@@ -1,6 +1,27 @@
---- Makefile.in.orig	2006-11-08 08:45:50.000000000 +0300
-+++ Makefile.in	2009-02-12 18:37:58.000000000 +0300
-@@ -214,6 +214,9 @@
+--- Makefile.in.orig	2006-11-08 13:45:50.000000000 +0800
++++ Makefile.in	2014-07-08 21:29:18.562095970 +0800
+@@ -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
  	patch -d $(RUBYDIR) -p0 < $(srcdir)/ruby185.patch
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407081331.s68DVDQ7077459>