aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-06-30 23:58:05 +0800
committervanilla <vanilla@FreeBSD.org>2014-06-30 23:58:05 +0800
commitf7f573461882aca58818b7c5278812b4316a509c (patch)
tree9852b54c786d21ccf5e5d05280d9dd0feffb345a /textproc
parent89e4d9d97664ffc1d27d6b4ea46078da6fc38a2d (diff)
downloadfreebsd-ports-gnome-f7f573461882aca58818b7c5278812b4316a509c.tar.gz
freebsd-ports-gnome-f7f573461882aca58818b7c5278812b4316a509c.tar.zst
freebsd-ports-gnome-f7f573461882aca58818b7c5278812b4316a509c.zip
1: Stagify.
2: use options helper. Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/perl2html/Makefile24
-rw-r--r--textproc/perl2html/files/patch-Makefile.in58
-rw-r--r--textproc/perl2html/files/patch-aa44
-rw-r--r--textproc/perl2html/pkg-plist1
4 files changed, 72 insertions, 55 deletions
diff --git a/textproc/perl2html/Makefile b/textproc/perl2html/Makefile
index 025e8dceded3..0b2713c5551f 100644
--- a/textproc/perl2html/Makefile
+++ b/textproc/perl2html/Makefile
@@ -1,26 +1,28 @@
# Created by: Martin Kammerhofer
# $FreeBSD$
-PORTNAME= perl2html
-PORTVERSION= 0.9.2
-PORTREVISION= 1
-CATEGORIES= textproc www
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
+PORTNAME= perl2html
+PORTVERSION= 0.9.2
+PORTREVISION= 1
+CATEGORIES= textproc www
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/www/converters
-MAINTAINER= mkamm@gmx.net
+MAINTAINER= mkamm@gmx.net
COMMENT= Perl sources to HTML converter
+LICENSE= GPLv2
+
USE_AUTOTOOLS= autoconf213
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
-MAN1= perl2html.1
+.include <bsd.port.options.mk>
-.if !defined(NOPORTDOCS)
post-install:
- ${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in AUTHORS NEWS README
- ${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/textproc/perl2html/files/patch-Makefile.in b/textproc/perl2html/files/patch-Makefile.in
new file mode 100644
index 000000000000..4f916e403db1
--- /dev/null
+++ b/textproc/perl2html/files/patch-Makefile.in
@@ -0,0 +1,58 @@
+--- Makefile.in.orig 2000-05-03 01:14:04.000000000 +0800
++++ Makefile.in 2014-06-30 23:46:37.906409781 +0800
+@@ -27,7 +27,7 @@ SHELL = /bin/sh
+ # for gzip because otherwise the load on the web server
+ # grows without having big benefits.
+ # COMPRESSION = -DCOMPRESSION=4
+-COMPRESSION = -DCOMPRESSION=1
++COMPRESSION ?= -DCOMPRESSION=1
+
+ # Dont change things beyond this line.
+ TARGET = @PROJECT_NAME@
+@@ -59,7 +59,7 @@ srcdir = @srcdir@
+ docdir = @DOCDIR@
+ CPPFLAGS = @CPPFLAGS@
+
+-CFLAGS += -O2 -Wall
++CFLAGS ?= -O2 -Wall
+ ALL_CFLAGS = $(CFLAGS) -I$(srcdir) -I. $(COMPRESSION)
+
+ all: $(TARGET)
+@@ -70,24 +70,25 @@ $(TARGET): $(CONFIGIN) $(CONFIGS) $(LEXO
+ $(LEXOUTPUT): $(CONFIGS) $(LEXSRCS) $(HDRS)
+ $(LEX) $(LEXSRCS)
+
+-install: $(TARGET) install-doc
++install: $(TARGET)
+ @echo "Installing" $(TARGET) "to" $(bindir)
+- -mkdir -p $(bindir)
+- $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
++ -mkdir -p $(DESTDIR)$(bindir)
++ $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
++ -mkdir -p $(DESTDIR)$(man1dir)
++ $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(DESTDIR)$(man1dir)/$(MANPAGE)
+
+ install-strip: $(TARGET) install-doc
+ @echo "Installing" $(TARGET) "to" $(bindir)
+- -mkdir -p $(bindir)
+- $(INSTALL_PROGRAM) -s $(TARGET) $(bindir)/$(TARGET)
++ -mkdir -p $(DESTDIR)$(bindir)
++ $(INSTALL_PROGRAM) -s $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
+
+ install-doc:
+- -mkdir -p $(man1dir) $(docdir)
+- $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
+- $(INSTALL_DATA) $(srcdir)/AUTHORS $(docdir)/AUTHORS
+- $(INSTALL_DATA) $(srcdir)/COPYING $(docdir)/COPYING
+- $(INSTALL_DATA) $(srcdir)/NEWS $(docdir)/NEWS
+- $(INSTALL_DATA) $(srcdir)/README $(docdir)/README
+- $(INSTALL_DATA) $(srcdir)/$(LSM) $(docdir)/$(LSM)
++ -mkdir -p $(DESTDIR)$(docdir)
++ $(INSTALL_DATA) $(srcdir)/AUTHORS $(DESTDIR)$(docdir)/AUTHORS
++ $(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(docdir)/COPYING
++ $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(docdir)/NEWS
++ $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(docdir)/README
++ $(INSTALL_DATA) $(srcdir)/$(LSM) $(DESTDIR)$(docdir)/$(LSM)
+
+ uninstall:
+ rm -f $(bindir)/$(TARGET)
diff --git a/textproc/perl2html/files/patch-aa b/textproc/perl2html/files/patch-aa
deleted file mode 100644
index 12f48fbc0140..000000000000
--- a/textproc/perl2html/files/patch-aa
+++ /dev/null
@@ -1,44 +0,0 @@
---- Makefile.in.orig Sat Apr 15 17:16:42 2000
-+++ Makefile.in Sun Apr 23 15:58:22 2000
-@@ -27,7 +27,7 @@
- # for gzip because otherwise the load on the web server
- # grows without having big benefits.
- # COMPRESSION = -DCOMPRESSION=4
--COMPRESSION = -DCOMPRESSION=1
-+COMPRESSION ?= -DCOMPRESSION=1
-
- # Dont change things beyond this line.
- TARGET = @PROJECT_NAME@
-@@ -59,7 +59,7 @@
- docdir = @DOCDIR@
- CPPFLAGS = @CPPFLAGS@
-
--CFLAGS += -O2 -Wall
-+CFLAGS ?= -O2 -Wall
- ALL_CFLAGS = $(CFLAGS) -I$(srcdir) -I. $(COMPRESSION)
-
- all: $(TARGET)
-@@ -70,10 +70,12 @@
- $(LEXOUTPUT): $(CONFIGS) $(LEXSRCS) $(HDRS)
- $(LEX) $(LEXSRCS)
-
--install: $(TARGET) install-doc
-+install: $(TARGET)
- @echo "Installing" $(TARGET) "to" $(bindir)
- -mkdir -p $(bindir)
- $(INSTALL_PROGRAM) $(TARGET) $(bindir)/$(TARGET)
-+ -mkdir -p $(man1dir)
-+ $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
-
- install-strip: $(TARGET) install-doc
- @echo "Installing" $(TARGET) "to" $(bindir)
-@@ -81,8 +83,7 @@
- $(INSTALL_PROGRAM) -s $(TARGET) $(bindir)/$(TARGET)
-
- install-doc:
-- -mkdir -p $(man1dir) $(docdir)
-- $(INSTALL_DATA) $(srcdir)/$(MANPAGE) $(man1dir)/$(MANPAGE)
-+ -mkdir -p $(docdir)
- $(INSTALL_DATA) $(srcdir)/AUTHORS $(docdir)/AUTHORS
- $(INSTALL_DATA) $(srcdir)/COPYING $(docdir)/COPYING
- $(INSTALL_DATA) $(srcdir)/NEWS $(docdir)/NEWS
diff --git a/textproc/perl2html/pkg-plist b/textproc/perl2html/pkg-plist
index 30c73ef1b907..6d129f5b1c9e 100644
--- a/textproc/perl2html/pkg-plist
+++ b/textproc/perl2html/pkg-plist
@@ -1,4 +1,5 @@
bin/perl2html
+man/man1/perl2html.1.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README