From b334b6a31498a2f30e4ffa44ba9641d762e98388 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sun, 27 Apr 2014 20:19:27 +0000 Subject: [PATCH] - Stagify; - Define the license; - Pet portlint. Todo: check if the mastersite is definitely down or not. --- textproc/spellutils/Makefile | 28 ++++++++----------- textproc/spellutils/files/patch-Makefile.in | 11 ++++++++ .../spellutils/files/patch-po_Makefile.in.in | 11 ++++++++ textproc/spellutils/pkg-message | 5 ---- textproc/spellutils/pkg-plist | 12 ++++---- 5 files changed, 40 insertions(+), 27 deletions(-) create mode 100644 textproc/spellutils/files/patch-Makefile.in create mode 100644 textproc/spellutils/files/patch-po_Makefile.in.in delete mode 100644 textproc/spellutils/pkg-message 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 +.endif +.if !defined(NOPORTEXAMPLES) +.for FILE in ${EXAMPLES} + ${INSTALL_DATA} ${FILESDIR}/${FILE} ${STAGEDIR}${EXAMPLESDIR} .endfor - @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." -.for FILE in ${EXAMPLES} - @${INSTALL_DATA} ${FILESDIR}/${FILE} ${EXAMPLESDIR} -.endfor - @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." .endif - @${ECHO_MSG} - @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" - @${ECHO_MSG} .include 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%%