diff options
author | bapt <bapt@FreeBSD.org> | 2013-10-04 18:18:25 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-10-04 18:18:25 +0800 |
commit | 123971a763bd974b73f19e327679b88f5576ed96 (patch) | |
tree | abb8991acd7e18e7873bb0626551f480f006ef70 /devel | |
parent | 368c99cb7c97aea2073eab5c88fc5b3f071bc57f (diff) | |
download | freebsd-ports-gnome-123971a763bd974b73f19e327679b88f5576ed96.tar.gz freebsd-ports-gnome-123971a763bd974b73f19e327679b88f5576ed96.tar.zst freebsd-ports-gnome-123971a763bd974b73f19e327679b88f5576ed96.zip |
Stagify
Add a DOCS option
Diffstat (limited to 'devel')
-rw-r--r-- | devel/epm/Makefile | 13 | ||||
-rw-r--r-- | devel/epm/files/patch-Makefile.in | 87 | ||||
-rw-r--r-- | devel/epm/pkg-plist | 6 |
3 files changed, 96 insertions, 10 deletions
diff --git a/devel/epm/Makefile b/devel/epm/Makefile index 748d9edcee98..d58e39482470 100644 --- a/devel/epm/Makefile +++ b/devel/epm/Makefile @@ -9,7 +9,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION} EXTRACT_SUFX= -source.tar.bz2 MAINTAINER= office@FreeBSD.org -COMMENT= A free UNIX software/file packaging program +COMMENT= Free UNIX software/file packaging program + +OPTIONS_DEFINE= DOCS LICENSE= GPLv2 @@ -18,13 +20,4 @@ USE_BZIP2= yes GNU_CONFIGURE= yes USE_AUTOTOOLS= autoconf -MAN1= epm.1 epminstall.1 mkepmlist.1 setup.1 -MAN5= epm.list.5 setup.types.5 - -NO_STAGE= yes -post-patch: -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in -.endif - .include <bsd.port.mk> diff --git a/devel/epm/files/patch-Makefile.in b/devel/epm/files/patch-Makefile.in new file mode 100644 index 000000000000..13f826f337c4 --- /dev/null +++ b/devel/epm/files/patch-Makefile.in @@ -0,0 +1,87 @@ +--- ./Makefile.in.orig 2010-12-29 18:32:40.000000000 +0100 ++++ ./Makefile.in 2013-10-04 12:12:25.004564898 +0200 +@@ -169,48 +169,48 @@ + + install: all @INSTALL_GUIS@ @INSTALL_OSX@ + echo Installing EPM programs in $(bindir) +- -$(MKDIR) $(bindir) +- $(RM) $(bindir)/epm +- $(CP) epm $(bindir) +- $(STRIP) $(bindir)/epm +- $(RM) $(bindir)/epminstall +- $(CP) epminstall $(bindir) +- $(STRIP) $(bindir)/epminstall +- $(RM) $(bindir)/mkepmlist +- $(CP) mkepmlist $(bindir) ++ -$(MKDIR) $(DESTDIR)$(bindir) ++ $(RM) $(DESTDIR)$(bindir)/epm ++ $(CP) epm $(DESTDIR)$(bindir) ++ $(STRIP) $(DESTDIR)$(bindir)/epm ++ $(RM) $(DESTDIR)$(bindir)/epminstall ++ $(CP) epminstall $(DESTDIR)$(bindir) ++ $(STRIP) $(DESTDIR)$(bindir)/epminstall ++ $(RM) $(DESTDIR)$(bindir)/mkepmlist ++ $(CP) mkepmlist $(DESTDIR)$(bindir) + echo Installing EPM manpages in $(mandir)/man1 +- -$(MKDIR) $(mandir)/man1 +- $(RM) $(mandir)/man1/epm.1 +- $(CP) $(srcdir)/doc/epm.man $(mandir)/man1/epm.1 +- $(RM) $(mandir)/man1/epminstall.1 +- $(CP) $(srcdir)/doc/epminstall.man $(mandir)/man1/epminstall.1 +- $(RM) $(mandir)/man1/mkepmlist.1 +- $(CP) $(srcdir)/doc/mkepmlist.man $(mandir)/man1/mkepmlist.1 +- $(RM) $(mandir)/man1/setup.1 +- $(CP) $(srcdir)/doc/setup.man $(mandir)/man1/setup.1 ++ -$(MKDIR) $(DESTDIR)$(mandir)/man1 ++ $(RM) $(DESTDIR)$(mandir)/man1/epm.1 ++ $(CP) $(srcdir)/doc/epm.man $(DESTDIR)$(mandir)/man1/epm.1 ++ $(RM) $(DESTDIR)$(mandir)/man1/epminstall.1 ++ $(CP) $(srcdir)/doc/epminstall.man $(DESTDIR)$(mandir)/man1/epminstall.1 ++ $(RM) $(DESTDIR)$(mandir)/man1/mkepmlist.1 ++ $(CP) $(srcdir)/doc/mkepmlist.man $(DESTDIR)$(mandir)/man1/mkepmlist.1 ++ $(RM) $(DESTDIR)$(mandir)/man1/setup.1 ++ $(CP) $(srcdir)/doc/setup.man $(DESTDIR)$(mandir)/man1/setup.1 + echo Installing EPM manpages in $(mandir)/man5 +- -$(MKDIR) $(mandir)/man5 +- $(RM) $(mandir)/man5/epm.list.5 +- $(CP) $(srcdir)/doc/epm.list.man $(mandir)/man5/epm.list.5 +- $(RM) $(mandir)/man5/setup.types.5 +- $(CP) $(srcdir)/doc/setup.types.man $(mandir)/man5/setup.types.5 ++ -$(MKDIR) $(DESTDIR)$(mandir)/man5 ++ $(RM) $(DESTDIR)$(mandir)/man5/epm.list.5 ++ $(CP) $(srcdir)/doc/epm.list.man $(DESTDIR)$(mandir)/man5/epm.list.5 ++ $(RM) $(DESTDIR)$(mandir)/man5/setup.types.5 ++ $(CP) $(srcdir)/doc/setup.types.man $(DESTDIR)$(mandir)/man5/setup.types.5 + echo Installing EPM documentation in $(docdir) +- -$(MKDIR) $(docdir) +- $(RM) $(docdir)/COPYING +- $(CP) $(srcdir)/COPYING $(docdir) +- $(RM) $(docdir)/README +- $(CP) $(srcdir)/README $(docdir) +- $(RM) $(docdir)/epm-book.html +- $(CP) $(srcdir)/doc/epm-book.html $(docdir) ++ -$(MKDIR) $(DESTDIR)$(docdir) ++ $(RM) $(DESTDIR)$(docdir)/COPYING ++ $(CP) $(srcdir)/COPYING $(DESTDIR)$(docdir) ++ $(RM) $(DESTDIR)$(docdir)/README ++ $(CP) $(srcdir)/README $(DESTDIR)$(docdir) ++ $(RM) $(DESTDIR)$(docdir)/epm-book.html ++ $(CP) $(srcdir)/doc/epm-book.html $(DESTDIR)$(docdir) + + install-guis: setup uninst + echo Installing EPM setup/uninst in $(libdir)/epm +- $(RM) -r $(libdir)/epm +- -$(MKDIR) $(libdir)/epm +- $(CP) setup $(libdir)/epm +- -$(STRIP) $(libdir)/epm/setup +- $(CP) uninst $(libdir)/epm +- -$(STRIP) $(libdir)/epm/uninst ++ $(RM) -r $(DESTDIR)$(libdir)/epm ++ -$(MKDIR) $(DESTDIR)$(libdir)/epm ++ $(CP) setup $(DESTDIR)$(libdir)/epm ++ -$(STRIP) $(DESTDIR)$(libdir)/epm/setup ++ $(CP) uninst $(DESTDIR)$(libdir)/epm ++ -$(STRIP) $(DESTDIR)$(libdir)/epm/uninst + + install-osx: + echo Installing EPM OSX data files in $(datadir)/epm diff --git a/devel/epm/pkg-plist b/devel/epm/pkg-plist index 4e6e7c1dd323..c04c63247653 100644 --- a/devel/epm/pkg-plist +++ b/devel/epm/pkg-plist @@ -1,6 +1,12 @@ bin/epm bin/epminstall bin/mkepmlist +man/man1/epm.1.gz +man/man1/epminstall.1.gz +man/man1/mkepmlist.1.gz +man/man1/setup.1.gz +man/man5/epm.list.5.gz +man/man5/setup.types.5.gz %%PORTDOCS%%%%DOCSDIR%%/COPYING %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/epm-book.html |