diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-11 17:11:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-11 17:11:58 +0000 |
commit | f0bb01e6aef53636881e09aee19a0b594c0b6e3f (patch) | |
tree | 97187f0a471d540954980d08d84683cbfede523b | |
parent | 198e3d3380f6928b5a99600f55a503aa096bb188 (diff) | |
download | pkgsrc-f0bb01e6aef53636881e09aee19a0b594c0b6e3f.tar.gz |
Fix build with newer Python versions. Add DESTDIR support.
-rw-r--r-- | graphics/skencil/Makefile | 18 | ||||
-rw-r--r-- | graphics/skencil/distinfo | 5 | ||||
-rw-r--r-- | graphics/skencil/patches/patch-ab | 20 | ||||
-rw-r--r-- | graphics/skencil/patches/patch-ac | 20 | ||||
-rw-r--r-- | graphics/skencil/patches/patch-ad | 20 |
5 files changed, 74 insertions, 9 deletions
diff --git a/graphics/skencil/Makefile b/graphics/skencil/Makefile index a47847e5fd4..192effdf367 100644 --- a/graphics/skencil/Makefile +++ b/graphics/skencil/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2009/02/09 22:56:24 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2009/02/11 17:11:58 joerg Exp $ # DISTNAME= skencil-0.6.17 @@ -10,6 +10,8 @@ MAINTAINER= uebayasi@NetBSD.org HOMEPAGE= http://sketch.sourceforge.net/ COMMENT= Interactive drawing program +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= pax PYTHON_PATCH_SCRIPTS= sk2ppm.py sk2ps.py skconvert.py skencil.py skshow.py @@ -27,19 +29,19 @@ do-build: do-install: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} setup.py install \ - --prefix=${PREFIX} + --prefix=${PREFIX} --dest-dir=${DESTDIR} SKETCHDOCDIR= ${PREFIX}/share/doc/skencil SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO SKETCHEXDIR= ${PREFIX}/share/examples/skencil +INSTALLATION_DIRS= ${SKETCHDOCDIR} ${SKETCHEXDIR} + post-install: - ${INSTALL_DATA_DIR} ${SKETCHDOCDIR} - cd ${WRKSRC} && pax -rwpm -v ${SKETCHDOCS} ${SKETCHDOCDIR} - ${RM} ${SKETCHDOCDIR}/Doc/fonts.alias - ${RM} ${SKETCHDOCDIR}/Doc/fonts.scale - ${INSTALL_DATA_DIR} ${SKETCHEXDIR} - cd ${WRKSRC}/Examples && pax -rwpm -v . ${SKETCHEXDIR} + cd ${WRKSRC} && pax -rw -pm -v ${SKETCHDOCS} ${DESTDIR}${SKETCHDOCDIR} + ${RM} ${DESTDIR}${SKETCHDOCDIR}/Doc/fonts.alias + ${RM} ${DESTDIR}${SKETCHDOCDIR}/Doc/fonts.scale + cd ${WRKSRC}/Examples && pax -rwpm -v . ${DESTDIR}${SKETCHEXDIR} .include "../../lang/python/application.mk" .include "../../graphics/py-imaging/buildlink3.mk" diff --git a/graphics/skencil/distinfo b/graphics/skencil/distinfo index ada940ddb21..a4085eb8a42 100644 --- a/graphics/skencil/distinfo +++ b/graphics/skencil/distinfo @@ -1,6 +1,9 @@ -$NetBSD: distinfo,v 1.4 2005/07/06 18:41:42 drochner Exp $ +$NetBSD: distinfo,v 1.5 2009/02/11 17:11:58 joerg Exp $ SHA1 (skencil-0.6.17.tar.gz) = e0154f90629d7693d0268d21204a9eb12f2497aa RMD160 (skencil-0.6.17.tar.gz) = 9183a16afd8e9d56098821b2a9088a0383a9dc2d Size (skencil-0.6.17.tar.gz) = 1148628 bytes SHA1 (patch-aa) = 50e4c396e19c85a39866b9ca6834ff347a02cc3c +SHA1 (patch-ab) = bca6bc1fee75d3f52a2022aa37274b33e0430133 +SHA1 (patch-ac) = 612bcc9d2b327d46aa9f0f68693af1fa21f46069 +SHA1 (patch-ad) = 405653de7fa8562bc14ec9580661418de5ea2976 diff --git a/graphics/skencil/patches/patch-ab b/graphics/skencil/patches/patch-ab new file mode 100644 index 00000000000..6d90486cb1c --- /dev/null +++ b/graphics/skencil/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.3 2009/02/11 17:11:58 joerg Exp $ + +--- Pax/Makefile.pre.in.orig 2009-02-11 17:51:19.000000000 +0100 ++++ Pax/Makefile.pre.in +@@ -124,6 +124,7 @@ RANLIB= @RANLIB@ + MACHDEP= @MACHDEP@ + SO= @SO@ + LDSHARED= @LDSHARED@ ++BLDSHARED= @BLDSHARED@ + CCSHARED= @CCSHARED@ + LINKFORSHARED= @LINKFORSHARED@ + #@SET_CCC@ +@@ -255,6 +256,7 @@ sedscript: $(MAKEFILE) + -e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \ + -e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \ + -e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \ ++ -e '/^BLDSHARED=/s/^BLDSHARED=[ ]*\(.*\)/s%@BLDSHARED[@]%\1%/p' \ + -e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \ + -e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \ + -e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \ diff --git a/graphics/skencil/patches/patch-ac b/graphics/skencil/patches/patch-ac new file mode 100644 index 00000000000..da3d23bbe56 --- /dev/null +++ b/graphics/skencil/patches/patch-ac @@ -0,0 +1,20 @@ +$NetBSD: patch-ac,v 1.1 2009/02/11 17:11:58 joerg Exp $ + +--- Filter/Makefile.pre.in.orig 2002-08-06 22:21:15.000000000 +0200 ++++ Filter/Makefile.pre.in +@@ -124,6 +124,7 @@ RANLIB= @RANLIB@ + MACHDEP= @MACHDEP@ + SO= @SO@ + LDSHARED= @LDSHARED@ ++BLDSHARED= @BLDSHARED@ + CCSHARED= @CCSHARED@ + LINKFORSHARED= @LINKFORSHARED@ + #@SET_CCC@ +@@ -255,6 +256,7 @@ sedscript: $(MAKEFILE) + -e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \ + -e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \ + -e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \ ++ -e '/^BLDSHARED=/s/^BLDSHARED=[ ]*\(.*\)/s%@BLDSHARED[@]%\1%/p' \ + -e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \ + -e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \ + -e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \ diff --git a/graphics/skencil/patches/patch-ad b/graphics/skencil/patches/patch-ad new file mode 100644 index 00000000000..200917d049e --- /dev/null +++ b/graphics/skencil/patches/patch-ad @@ -0,0 +1,20 @@ +$NetBSD: patch-ad,v 1.1 2009/02/11 17:11:58 joerg Exp $ + +--- Sketch/Modules/Makefile.pre.in.orig 2002-08-06 22:21:24.000000000 +0200 ++++ Sketch/Modules/Makefile.pre.in +@@ -124,6 +124,7 @@ RANLIB= @RANLIB@ + MACHDEP= @MACHDEP@ + SO= @SO@ + LDSHARED= @LDSHARED@ ++BLDSHARED= @BLDSHARED@ + CCSHARED= @CCSHARED@ + LINKFORSHARED= @LINKFORSHARED@ + #@SET_CCC@ +@@ -255,6 +256,7 @@ sedscript: $(MAKEFILE) + -e '/^RANLIB=/s/^RANLIB=[ ]*\(.*\)/s%@RANLIB[@]%\1%/p' \ + -e '/^MACHDEP=/s/^MACHDEP=[ ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \ + -e '/^SO=/s/^SO=[ ]*\(.*\)/s%@SO[@]%\1%/p' \ ++ -e '/^BLDSHARED=/s/^BLDSHARED=[ ]*\(.*\)/s%@BLDSHARED[@]%\1%/p' \ + -e '/^LDSHARED=/s/^LDSHARED=[ ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \ + -e '/^CCSHARED=/s/^CCSHARED=[ ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \ + -e '/^$L=/s/^$L=[ ]*\(.*\)/s%@$L[@]%\1%/p' \ |