pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/x11rec Fixes packaging
details: https://anonhg.NetBSD.org/pkgsrc/rev/ee131da7c167
branches: trunk
changeset: 632095:ee131da7c167
user: obache <obache%pkgsrc.org@localhost>
date: Sat Mar 15 07:40:59 2014 +0000
description:
Fixes packaging
* just using ruby as a tool, not a module.
* missing dependency on xwd and xwininfo for the case X11_TYPE=modular.
* fixes prefix of ImageMagick, long term bug since converted dependency from
buildlik to simple DEPENDS.
Bump PKGREVISION.
diffstat:
graphics/x11rec/Makefile | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diffs (49 lines):
diff -r c7d1806678b9 -r ee131da7c167 graphics/x11rec/Makefile
--- a/graphics/x11rec/Makefile Sat Mar 15 05:38:14 2014 +0000
+++ b/graphics/x11rec/Makefile Sat Mar 15 07:40:59 2014 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.18 2012/10/06 14:11:25 asau Exp $
+# $NetBSD: Makefile,v 1.19 2014/03/15 07:40:59 obache Exp $
#
DISTNAME= x11rec-0.3
-PKGREVISION= 7
+PKGNAME= ${RUBY_PKGPREFIX}-x11rec-0.3
+PKGREVISION= 8
CATEGORIES= graphics ruby
MASTER_SITES= http://0xcc.net/x11rec/
@@ -14,6 +15,12 @@
DEPENDS+= gifsicle-[0-9]*:../../graphics/gifsicle
DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
+.include "../../mk/bsd.prefs.mk"
+.if ${X11_TYPE} == "modular"
+DEPENDS+= xwd-[0-9]*:../../x11/xwd
+DEPENDS+= xwininfo-[0-9]*:../../x11/xwininfo
+.endif
+
CONFLICTS+= ruby[1-9][0-9]-x11rec-[0-9]* x11rec-[0-9]*
NO_BUILD= yes
@@ -28,7 +35,11 @@
${INSTALL_DATA} ${WRKSRC}/x11rec-ja.html \
${DESTDIR}${PREFIX}/share/doc/x11rec/index.html.ja
-.include "../../lang/ruby/modules.mk"
+.include "../../lang/ruby/replace.mk"
+
+FIND_PREFIX:= BUILDLINK_PREFIX.ImageMagick=ImageMagick \
+ BUILDLINK_PREFIX.gifsicle=gifsicle
+.include "../../mk/find-prefix.mk"
SUBST_CLASSES+= toolpath
SUBST_STAGE.toolpath= pre-configure
@@ -37,6 +48,6 @@
SUBST_SED.toolpath= -e "s|@xwininfo@|${X11BASE}/bin/xwininfo|"
SUBST_SED.toolpath+= -e "s|@xwd@|${X11BASE}/bin/xwd|"
SUBST_SED.toolpath+= -e "s|@convert@|${BUILDLINK_PREFIX.ImageMagick}/bin/convert|"
-SUBST_SED.toolpath+= -e "s|@gifsicle@|${PREFIX}/bin/gifsicle|"
+SUBST_SED.toolpath+= -e "s|@gifsicle@|${BUILDLINK_PREFIX.gifsicle}/bin/gifsicle|"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index