summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-04-27 20:19:27 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-04-27 20:19:27 +0000
commitb334b6a31498a2f30e4ffa44ba9641d762e98388 (patch)
tree530c3399ea65304bbec23dd7246ecb17bcc5cc86 /textproc
parent- Add staging support (diff)
- Stagify;
- Define the license; - Pet portlint. Todo: check if the mastersite is definitely down or not.
Notes
Notes: svn path=/head/; revision=352457
Diffstat (limited to 'textproc')
-rw-r--r--textproc/spellutils/Makefile24
-rw-r--r--textproc/spellutils/files/patch-Makefile.in11
-rw-r--r--textproc/spellutils/files/patch-po_Makefile.in.in11
-rw-r--r--textproc/spellutils/pkg-message5
-rw-r--r--textproc/spellutils/pkg-plist12
5 files changed, 38 insertions, 25 deletions
diff --git a/textproc/spellutils/Makefile b/textproc/spellutils/Makefile
index 50e28ba6beb2..4e89dea2b49a 100644
--- a/textproc/spellutils/Makefile
+++ b/textproc/spellutils/Makefile
@@ -10,35 +10,29 @@ MASTER_SITES= http://home.worldonline.dk/byrial/spellutils/
MAINTAINER= thierry@pompo.net
COMMENT= Programs used to isolate some parts or texts before spell-checking
+LICENSE= GPLv2
GNU_CONFIGURE= yes
-USE_BZIP2= yes
-USES= gettext
-CONFIGURE_ENV= LIBS='-L${LOCALBASE}/lib'
+USES= gettext tar:bzip2
+CONFIGURE_ENV= LIBS='-L${LOCALBASE}/lib'
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lintl
-MAN1= pospell.1 newsbody.1
-
DOCS= NEWS README
EXAMPLES= aspell.sl
-NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${MKDIR} ${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for FILE in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+.if !defined(NOPORTEXAMPLES)
.for FILE in ${EXAMPLES}
- @${INSTALL_DATA} ${FILESDIR}/${FILE} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${FILESDIR}/${FILE} ${STAGEDIR}${EXAMPLESDIR}
.endfor
- @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
- @${ECHO_MSG}
.include <bsd.port.mk>
diff --git a/textproc/spellutils/files/patch-Makefile.in b/textproc/spellutils/files/patch-Makefile.in
new file mode 100644
index 000000000000..51d18c663ad3
--- /dev/null
+++ b/textproc/spellutils/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2000-04-23 10:17:30.000000000 +0200
++++ Makefile.in 2014-04-27 21:58:08.000000000 +0200
+@@ -32,8 +32,6 @@
+ includedir = @includedir@
+ oldincludedir = /usr/include
+
+-DESTDIR =
+-
+ pkgdatadir = $(datadir)/@PACKAGE@
+ pkglibdir = $(libdir)/@PACKAGE@
+ pkgincludedir = $(includedir)/@PACKAGE@
diff --git a/textproc/spellutils/files/patch-po_Makefile.in.in b/textproc/spellutils/files/patch-po_Makefile.in.in
new file mode 100644
index 000000000000..003ca5266022
--- /dev/null
+++ b/textproc/spellutils/files/patch-po_Makefile.in.in
@@ -0,0 +1,11 @@
+--- po/Makefile.in.in.orig 2000-04-16 12:04:50.000000000 +0200
++++ po/Makefile.in.in 2014-04-27 22:10:03.000000000 +0200
+@@ -20,7 +20,7 @@
+ exec_prefix = @exec_prefix@
+ datadir = $(prefix)/@DATADIRNAME@
+ localedir = $(datadir)/locale
+-gnulocaledir = $(prefix)/share/locale
++gnulocaledir = $(DESTDIR)$(prefix)/share/locale
+ gettextsrcdir = $(prefix)/share/gettext/po
+ subdir = po
+
diff --git a/textproc/spellutils/pkg-message b/textproc/spellutils/pkg-message
deleted file mode 100644
index e60477a95846..000000000000
--- a/textproc/spellutils/pkg-message
+++ /dev/null
@@ -1,5 +0,0 @@
-*****************************************************************************
-
- newsbody & pospell have been installed in %%PREFIX%%/bin.
-
-*****************************************************************************
diff --git a/textproc/spellutils/pkg-plist b/textproc/spellutils/pkg-plist
index 44fcd769438a..9fe2063cd323 100644
--- a/textproc/spellutils/pkg-plist
+++ b/textproc/spellutils/pkg-plist
@@ -1,8 +1,10 @@
bin/pospell
bin/newsbody
share/locale/da/LC_MESSAGES/spellutils.mo
-%%PORTDOCS%%share/doc/spellutils/NEWS
-%%PORTDOCS%%share/doc/spellutils/README
-%%PORTDOCS%%share/examples/spellutils/aspell.sl
-%%PORTDOCS%%@dirrm share/doc/spellutils
-%%PORTDOCS%%@dirrm share/examples/spellutils
+man/man1/newsbody.1.gz
+man/man1/pospell.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/aspell.sl
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%