pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/mypaint-brushes



Module Name:    pkgsrc
Committed By:   tnn
Date:           Wed Jan  2 17:23:04 UTC 2019

Modified Files:
        pkgsrc/graphics/mypaint-brushes: Makefile distinfo
Added Files:
        pkgsrc/graphics/mypaint-brushes/patches: patch-SConstruct

Log Message:
mypaint-brushes: catch up with scons update; support building with python 3


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/graphics/mypaint-brushes/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/graphics/mypaint-brushes/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/mypaint-brushes/patches/patch-SConstruct

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/mypaint-brushes/Makefile
diff -u pkgsrc/graphics/mypaint-brushes/Makefile:1.3 pkgsrc/graphics/mypaint-brushes/Makefile:1.4
--- pkgsrc/graphics/mypaint-brushes/Makefile:1.3        Mon Apr 30 20:57:47 2018
+++ pkgsrc/graphics/mypaint-brushes/Makefile    Wed Jan  2 17:23:03 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2018/04/30 20:57:47 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2019/01/02 17:23:03 tnn Exp $
 
 DISTNAME=      mypaint-brushes-1.3.0
 CATEGORIES=    graphics
@@ -11,8 +11,6 @@ HOMEPAGE=     https://github.com/Jehan/mypai
 COMMENT=       Default MyPaint brushes
 LICENSE=       cc0-1.0-universal
 
-BUILD_DEPENDS+=        scons-[0-9]*:../../devel/scons
-
 USE_TOOLS+=    pkg-config
 USE_LANGUAGES= # none
 
@@ -21,11 +19,13 @@ PKGCONFIG_OVERRIDE+=        pkgconfig.pc.in
 SCONS_ARGS+=   prefix=${DESTDIR}${PREFIX}
 
 do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons \
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONSBIN} \
                ${SCONS_ARGS}
 
 do-install:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons \
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONSBIN} \
                ${SCONS_ARGS} install
 
+PYTHON_FOR_BUILD_ONLY?=        yes
+.include "../../devel/scons/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/graphics/mypaint-brushes/distinfo
diff -u pkgsrc/graphics/mypaint-brushes/distinfo:1.1 pkgsrc/graphics/mypaint-brushes/distinfo:1.2
--- pkgsrc/graphics/mypaint-brushes/distinfo:1.1        Mon Apr 30 04:56:17 2018
+++ pkgsrc/graphics/mypaint-brushes/distinfo    Wed Jan  2 17:23:04 2019
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2018/04/30 04:56:17 ryoon Exp $
+$NetBSD: distinfo,v 1.2 2019/01/02 17:23:04 tnn Exp $
 
 SHA1 (mypaint-brushes-1.3.0.tar.gz) = 809e085b9920891c0f42a92ce2950a2aa5cf236e
 RMD160 (mypaint-brushes-1.3.0.tar.gz) = b28518aa1d3b5d9f5c75d0b5411e55bb64dccc64
 SHA512 (mypaint-brushes-1.3.0.tar.gz) = f8e0050cd700358d75cd25e40acd73905e2a53f21c6177cf67e8012aa4fbba8dc445109f07601c3846f95532a40feff4441081c0aa4e958049fc0ed8008fb414
 Size (mypaint-brushes-1.3.0.tar.gz) = 2447093 bytes
+SHA1 (patch-SConstruct) = ca04983b2c6829f3cca0a7e60bb59499f4f63e5c

Added files:

Index: pkgsrc/graphics/mypaint-brushes/patches/patch-SConstruct
diff -u /dev/null pkgsrc/graphics/mypaint-brushes/patches/patch-SConstruct:1.1
--- /dev/null   Wed Jan  2 17:23:04 2019
+++ pkgsrc/graphics/mypaint-brushes/patches/patch-SConstruct    Wed Jan  2 17:23:04 2019
@@ -0,0 +1,32 @@
+$NetBSD: patch-SConstruct,v 1.1 2019/01/02 17:23:04 tnn Exp $
+
+python 3.x compatibility
+
+--- SConstruct.orig    2018-01-01 20:22:53.000000000 +0000
++++ SConstruct
+@@ -23,7 +23,7 @@ opts.Update(env)
+ env.Alias('install', '$prefix')
+ 
+ set_dir_postaction = {}
+-def install_perms(env, target, sources, perms=0644, dirperms=0755):
++def install_perms(env, target, sources, perms=0o644, dirperms=0o755):
+     """As a normal env.Install, but with Chmod postactions.
+ 
+     The `target` parameter must be a string which starts with ``$prefix``.
+@@ -52,14 +52,14 @@ def install_perms(env, target, sources, 
+             d_prev = None
+             while d != d_prev and d != '$prefix':
+                 d_prev = d
+-                if not set_dir_postaction.has_key(d):
++                if not d in set_dir_postaction:
+                     env.AddPostAction(file_targ, Chmod(d, dirperms))
+                     set_dir_postaction[d] = True
+                 d = os.path.dirname(d)
+ 
+     return install_targs
+ 
+-def install_tree(env, dest, path, perms=0644, dirperms=0755):
++def install_tree(env, dest, path, perms=0o644, dirperms=0o755):
+     assert os.path.isdir(path)
+     target_root = os.path.join(dest, os.path.basename(path))
+     for dirpath, dirnames, filenames in os.walk(path):



Home | Main Index | Thread Index | Old Index