From ba171a91fab519f587b027c1a2888cb6e3fce049 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 12 Jun 2008 02:14:13 +0000 Subject: Add DESTDIR support. --- math/pspp/Makefile | 4 +++- math/pspp/distinfo | 3 ++- math/pspp/patches/patch-ar | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 math/pspp/patches/patch-ar (limited to 'math/pspp') diff --git a/math/pspp/Makefile b/math/pspp/Makefile index 24026226842..c6ba89b50f0 100644 --- a/math/pspp/Makefile +++ b/math/pspp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2007/11/11 23:55:19 wiz Exp $ +# $NetBSD: Makefile,v 1.39 2008/06/12 02:14:36 joerg Exp $ # DISTNAME= pspp-0.3.0 @@ -16,6 +16,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gnu.org/software/pspp/ COMMENT= Program for statistical analysis of sampled data +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= msgfmt GNU_CONFIGURE= yes CPPFLAGS+= -Dunix=1 diff --git a/math/pspp/distinfo b/math/pspp/distinfo index 11a5a681b85..0764c87f746 100644 --- a/math/pspp/distinfo +++ b/math/pspp/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2006/07/09 13:43:56 joerg Exp $ +$NetBSD: distinfo,v 1.12 2008/06/12 02:14:36 joerg Exp $ SHA1 (pspp-0.3.0.tar.gz) = 1d07a7e7ef0677e5934331ed0b80b92c7bba7074 RMD160 (pspp-0.3.0.tar.gz) = 8272d458340e77ffa54962c12a9fe377498fb10a @@ -19,3 +19,4 @@ SHA1 (patch-an) = 1bcb30f7a0a21a9a05cf022d18c9cf806c204f85 SHA1 (patch-ao) = c918fe9d3837ea5902405a0faca885528b31a6f6 SHA1 (patch-ap) = 1682fe56215616b09782ca1f1f5d5f59834b043b SHA1 (patch-aq) = dc3fc8b4b642b79b854bae03a3622dc561d0605c +SHA1 (patch-ar) = 863562c8f7ad6b7666fb58ca73672b559a77973a diff --git a/math/pspp/patches/patch-ar b/math/pspp/patches/patch-ar new file mode 100644 index 00000000000..c783dbf5ac3 --- /dev/null +++ b/math/pspp/patches/patch-ar @@ -0,0 +1,25 @@ +$NetBSD: patch-ar,v 1.1 2008/06/12 02:14:36 joerg Exp $ + +--- po/Makefile.in.in.orig 2008-06-11 10:30:55.000000000 +0000 ++++ po/Makefile.in.in +@@ -110,16 +110,16 @@ install-data: install-data-@USE_NLS@ + install-data-no: all + install-data-yes: all + if test -r $(MKINSTALLDIRS); then \ +- $(MKINSTALLDIRS) $(datadir); \ ++ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \ + else \ +- $(top_srcdir)/mkinstalldirs $(datadir); \ ++ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \ + fi + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + cat=`basename $$cat`; \ + case "$$cat" in \ +- *.gmo) destdir=$(gnulocaledir);; \ +- *) destdir=$(localedir);; \ ++ *.gmo) destdir=${DESTDIR}$(gnulocaledir);; \ ++ *) destdir=${DESTDIR}$(localedir);; \ + esac; \ + lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ + dir=$$destdir/$$lang/LC_MESSAGES; \ -- cgit v1.2.3