aboutsummaryrefslogtreecommitdiffstats
path: root/print/a2ps-letter
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-06-12 05:21:29 +0800
committerdinoex <dinoex@FreeBSD.org>2003-06-12 05:21:29 +0800
commit1c1913f3e15f5b4c766239e489871be5540346b5 (patch)
tree101abfcd1770f65dfb58c9f9e49bf66004c1f4ac /print/a2ps-letter
parentf6412e6b32473ef67c215732dab2af8096716c79 (diff)
downloadfreebsd-ports-gnome-1c1913f3e15f5b4c766239e489871be5540346b5.tar.gz
freebsd-ports-gnome-1c1913f3e15f5b4c766239e489871be5540346b5.tar.zst
freebsd-ports-gnome-1c1913f3e15f5b4c766239e489871be5540346b5.zip
- add option WITH_EMACS
- cleanup from ports/24743, Submitted by: knarf@camelot.de - patch from ports/30298, Submitted by: pm@clabs.at
Diffstat (limited to 'print/a2ps-letter')
-rw-r--r--print/a2ps-letter/Makefile15
-rw-r--r--print/a2ps-letter/files/patch-xgethostname.c12
-rw-r--r--print/a2ps-letter/pkg-plist53
3 files changed, 67 insertions, 13 deletions
diff --git a/print/a2ps-letter/Makefile b/print/a2ps-letter/Makefile
index 6ed9f7d58822..73d5272e10ee 100644
--- a/print/a2ps-letter/Makefile
+++ b/print/a2ps-letter/Makefile
@@ -7,7 +7,7 @@
PORTNAME= a2ps
PORTVERSION= 4.13
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= print
MASTER_SITES= ftp://ftp.enst.fr/pub/unix/a2ps/ \
${MASTER_SITE_GNU}
@@ -39,12 +39,21 @@ CONFIGURE_ARGS= --with-medium=${PAPERSIZECNF} --sharedstatedir=$(PREFIX)/share -
@${FALSE}
.endif
+.if defined(WITH_EMACS)
+PLIST_SUB+= WITHEMACS=""
+.else
+PLIST_SUB+= WITHEMACS="@comment "
+.endif
+
post-extract:
$(CP) $(DISTDIR)/sheets.map $(WRKSRC)/sheets/sheets.map
post-install:
- strip ${PREFIX}/bin/a2ps
+ ${STRIP_CMD} ${PREFIX}/bin/a2ps
(cd ${WRKSRC}/doc; ${MAKE} install)
- $(RM) -f $(PREFIX)/lib/liba2ps.la
+ install-info ${PREFIX}/info/a2ps.info ${PREFIX}/info/dir
+ install-info ${PREFIX}/info/ogonkify.info ${PREFIX}/info/dir
+ install-info ${PREFIX}/info/regex.info ${PREFIX}/info/dir
+ ${RM} -f ${PREFIX}/lib/liba2ps.la
.include <bsd.port.mk>
diff --git a/print/a2ps-letter/files/patch-xgethostname.c b/print/a2ps-letter/files/patch-xgethostname.c
new file mode 100644
index 000000000000..bfc7c33e0a6d
--- /dev/null
+++ b/print/a2ps-letter/files/patch-xgethostname.c
@@ -0,0 +1,12 @@
+--- lib/xgethostname.c Tue Sep 4 00:51:26 2001
++++ lib/xgethostname.c.new Tue Sep 4 00:55:39 2001
+@@ -63,7 +63,7 @@
+ if (err == 0 && hostname[k] == '\0')
+ break;
+ #ifdef ENAMETOOLONG
+- else if (err != 0 && errno != ENAMETOOLONG && errno != 0)
++ else if (err != 0 && errno != ENAMETOOLONG && errno != ENOMEM && errno != 0)
+ error (EXIT_FAILURE, errno, "gethostname");
+ #endif
+ size *= 2;
+
diff --git a/print/a2ps-letter/pkg-plist b/print/a2ps-letter/pkg-plist
index 2d5cd4259eb5..a143ac6b81e7 100644
--- a/print/a2ps-letter/pkg-plist
+++ b/print/a2ps-letter/pkg-plist
@@ -89,9 +89,6 @@ share/locale/ru/LC_MESSAGES/a2ps.mo
share/locale/sl/LC_MESSAGES/a2ps.mo
share/locale/sv/LC_MESSAGES/a2ps.mo
share/locale/tr/LC_MESSAGES/a2ps.mo
-@unexec rmdir share/locale/*/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir share/locale/* 2>/dev/null || true
-@unexec rmdir share/locale 2>/dev/null || true
share/a2ps/sheets/sheets.map
share/a2ps/sheets/ada.ssh
share/a2ps/sheets/asn1.ssh
@@ -247,7 +244,8 @@ share/a2ps/afm/pzdr.afm
share/a2ps/ppd/README
share/a2ps/ppd/level1.ppd
share/a2ps/ppd/level2.ppd
-@comment share/emacs/site-lisp/a2ps.el
+%%WITHEMACS%%share/emacs/site-lisp/a2ps.el
+%%WITHEMACS%%share/emacs/site-lisp/a2ps-print.el
bin/a2ps
bin/ogonkify
bin/composeglyphs
@@ -258,9 +256,9 @@ bin/fixps
bin/pdiff
bin/psmandup
bin/psset
-@unexec install-info --delete --info-dir=%D/info %D/info/a2ps.info
-@unexec install-info --delete --info-dir=%D/info %D/info/ogonkify.info
-@unexec install-info --delete --info-dir=%D/info %D/info/regex.info
+@unexec install-info --delete %D/info/a2ps.info %D/info/dir
+@unexec install-info --delete %D/info/ogonkify.info %D/info/dir
+@unexec install-info --delete %D/info/regex.info %D/info/dir
info/ogonkify.info
info/a2ps.info
info/a2ps.info-1
@@ -273,9 +271,9 @@ info/regex.info
info/regex.info-1
info/regex.info-2
info/regex.info-3
-@exec install-info --info-dir=%D/info %D/info/a2ps.info
-@exec install-info --info-dir=%D/info %D/info/ogonkify.info
-@exec install-info --info-dir=%D/info %D/info/regex.info
+@exec install-info %D/info/a2ps.info %D/info/dir
+@exec install-info %D/info/ogonkify.info %D/info/dir
+@exec install-info %D/info/regex.info %D/info/dir
include/liba2ps.h
lib/liba2ps.a
@dirrm share/a2ps/ppd
@@ -288,3 +286,38 @@ lib/liba2ps.a
@dirrm share/a2ps/sheets
@dirrm share/a2ps/encoding
@dirrm share/a2ps
+@dirrm share/locale/ca/LC_MESSAGES
+@dirrm share/locale/ca
+@dirrm share/locale/cs/LC_MESSAGES
+@dirrm share/locale/cs
+@dirrm share/locale/da/LC_MESSAGES
+@dirrm share/locale/da
+@dirrm share/locale/de/LC_MESSAGES
+@dirrm share/locale/de
+@dirrm share/locale/es/LC_MESSAGES
+@dirrm share/locale/es
+@dirrm share/locale/et/LC_MESSAGES
+@dirrm share/locale/et
+@dirrm share/locale/fr/LC_MESSAGES
+@dirrm share/locale/fr
+@dirrm share/locale/it/LC_MESSAGES
+@dirrm share/locale/it
+@dirrm share/locale/ko/LC_MESSAGES
+@dirrm share/locale/ko
+@dirrm share/locale/nl/LC_MESSAGES
+@dirrm share/locale/nl
+@dirrm share/locale/no/LC_MESSAGES
+@dirrm share/locale/no
+@dirrm share/locale/pl/LC_MESSAGES
+@dirrm share/locale/pl
+@dirrm share/locale/pt/LC_MESSAGES
+@dirrm share/locale/pt
+@dirrm share/locale/ru/LC_MESSAGES
+@dirrm share/locale/ru
+@dirrm share/locale/sl/LC_MESSAGES
+@dirrm share/locale/sl
+@dirrm share/locale/sv/LC_MESSAGES
+@dirrm share/locale/sv
+@dirrm share/locale/tr/LC_MESSAGES
+@dirrm share/locale/tr
+@dirrm share/locale