diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/mypaint |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/mypaint')
-rw-r--r-- | media-gfx/mypaint/Manifest | 12 | ||||
-rw-r--r-- | media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch | 53 | ||||
-rw-r--r-- | media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch | 24 | ||||
-rw-r--r-- | media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch | 15 | ||||
-rw-r--r-- | media-gfx/mypaint/metadata.xml | 11 | ||||
-rw-r--r-- | media-gfx/mypaint/mypaint-1.1.0-r2.ebuild | 91 | ||||
-rw-r--r-- | media-gfx/mypaint/mypaint-1.2.0.ebuild | 86 | ||||
-rw-r--r-- | media-gfx/mypaint/mypaint-1.2.1.ebuild | 91 |
8 files changed, 383 insertions, 0 deletions
diff --git a/media-gfx/mypaint/Manifest b/media-gfx/mypaint/Manifest new file mode 100644 index 000000000000..b551c614922c --- /dev/null +++ b/media-gfx/mypaint/Manifest @@ -0,0 +1,12 @@ +AUX mypaint-1.1.0-build-env-vars.patch 1812 SHA256 6259c8cfe61829880a6ed0f18e7d653271ec53df5132dc4d2eaa5628eb49aec6 SHA512 336a9c838ac9e51f929f9727008feab8251ab9defd106d7161fe5d5b5150460573c66873b88f202d616e4668d3bf272b8dc8305e367ef7c450620b6a48330fe9 WHIRLPOOL fe2eebfceb02e867590775569151e975fb9276e265cf5e7754d21401888cfccde69d29fe4599a87c4b9bf749a8090e92784104579727c143348ffd3137b46672 +AUX mypaint-1.1.0-desktop.patch 626 SHA256 0c2dad7f45e0d1b2763ef7933f2e774e5b8199a7f7732c6bfc78e59ae2e3a3ec SHA512 77f267ad6a12b6d18fa955b5b9f8ef3a3eb6fed832745eda4db539d75c49056bb7fd6474ee904e6ac7cab12ae286beb48617e4825b826ca77a439764873e8d75 WHIRLPOOL 89f5aead97dda499da0a4e6e26135941998205f97c9ab26b205221e43ffe6418e688692cbf063fded53900bf1853e5d5ad367eba77de61dff53ac00838590d40 +AUX mypaint-1.1.0-json-c-0.11.patch 403 SHA256 e3cf5443175d3e8fe2e3e0d687c7d5e644ae7cb70f95d457356f610208c83d49 SHA512 554d0f0cc8c9cb4a48b1f9c57532247461e9705ad819c52f2e264ea238783fe60728af3e51e01667dc0c60883375727624811a48d1603436ad9970282a682605 WHIRLPOOL 05b67cb7c7b2c9dca6443ef5f61609cd0945d10e1bcb937cde9fb8e7b2d662bd32405b352741f3780cf02c117f6efc1a5740eb420a370a9db426447dd4062824 +DIST mypaint-1.1.0.tar.bz2 37416388 SHA256 780d57e50dd90afd586873bc5120261930ea4c309d4d0958020916932122e838 SHA512 a3eef378ddcaa0a33f9afc49cc587489ecfff6f3e46e2238aab83f89d682f2407e2760e6029eaac3591f0a8955c95280c12839adcb42ec452cefbcdb142ab9b9 WHIRLPOOL bfd7356ad393dd85b91ccc010b5d0be23a6d82a33866edade0ef6eb739a1cbdb6823d7bffbdc943f96cdac9059abb7ac1edacf31d4ac2cd3871444594e23557a +DIST mypaint-1.2.0.tar.xz 37895196 SHA256 cdab33dd0c146cf678c97bcdd44e561f97a0aec40421b8c6785a74b33b9728e2 SHA512 b4e75393cf6ed9b0c3c5a96979607c848d463987e3ac0f711738940ba97be6922e0cce735c56f91261bfce3e0730d69393dd57a45b3b04824c63c74cf1306790 WHIRLPOOL aee266e09258cbf23bf1fc8e78f0d717ecf5a2a1c03898193901b24e38266922d575744a01f4a31aa4fe6da566d05f246b16cad690d21f40a9ff90ad1596cc49 +DIST mypaint-1.2.1.tar.xz 37897196 SHA256 ed2349382f6a0c583d7defae06427e97ac7d14acb77b9e2c0fc7171ddd96d3c7 SHA512 1783765e495b9535669a83a29d27ba684e6201fdfe0875bdd2c167b1dab8af05993b19025767fe0b2770ed9e578e4709f75d8a4820ac945812cba85609f9eb9b WHIRLPOOL 5af6ec271d7844c45f3af0bca8dbc7ae4ff46416fd43a7760ccc4bc79af415e993107d9ee9cb9fadc4c5feea3d55917f6c0c8052134f4642694706d4606b9586 +EBUILD mypaint-1.1.0-r2.ebuild 2032 SHA256 cc9e75df093f82080153d7a1570d64e32926f05c67c8ce68e882e344645c9a85 SHA512 906b639cf46ebd2b87e003fe19f1dbb807b7584b73d04f481429b01abb093bd7a6767072429dcec86fb5f255f272ca0c66467cbdfe974466fbca4571df0401cb WHIRLPOOL 02b1f20ab7ce6e7cb06690cc55ce4acebd3ad4e42dc506d17872b99ae434d80d1c8e6eaee65973f23727baed6a283512bc3587e08f8b58aa5abe8fcd052a08a3 +EBUILD mypaint-1.2.0.ebuild 1843 SHA256 b97e642dbfbe0febc2691143e08771c6286af46a8dd354a58d4817bb231fa5c5 SHA512 e0ccc37c46c109e61f600fce594474725ad4df7485d062f1c1786ebfc78c5c120a225a636d01e302e67c2918b1b6c424f541a49565a138135bc3e943d68ca86a WHIRLPOOL 1bfdace9922e0be39cf7d702ea6adb664387d9e4dc85ea056a90a3015725df8f34c7543e6db52f1715dd7197ad3bab92abdb961e3b7c41405393de5bba179bf3 +EBUILD mypaint-1.2.1.ebuild 1986 SHA256 ab036d4abbb41c8f56605161d2a2abec67dd4be404db81eaceb4777d76efc5da SHA512 f6d8edca3abf53b8552fc4fa1f979b46513c2213489c1eb8e502d97c518b3bf7d5293facadd021f4c1cf0d239f1fa88c24a369da81701e2034e5fe3082fd5e54 WHIRLPOOL bdca6d332b699a770ec728bf736a53e8e2a8ff50c306c41219da730d62b6484595b79faeeb452da43ed826d9b61267bd8975a0c583c60dde24da40d977cbe67d +MISC ChangeLog 3195 SHA256 5617504e8133fbd7050d2205a359c7579a779d45f0078ae877940a3d8eb1ef4c SHA512 b6d76c1db6ccd847ad1d0c092467fb6e42e2417356fdc638d8b4458860176e9ab4d9202fb9abd5d1b318dc1337f970b15dcd6fa030f0807c0b14d73e89d0c630 WHIRLPOOL d1472a4099d29b75f65006308ce1ca69d9b93b55529d70c5ede1a3ecdca17fd0659ac59010cda95221a2c955f57872e661e0fa1f816baed88ae7c3170f0f655d +MISC ChangeLog-2015 4153 SHA256 5fbb0963a95daa50c2408d9069122384d22e9ac736114839a22b450b36f35a70 SHA512 821e12315221097bbd97128e019f3d6173a41b99d3f16bf4f8142d7b91eb32de758fd891341553b587676c14f9fba2b558d1183a18a3a52f3f937cdff9df7cbd WHIRLPOOL 972056e25a5a827dde380572256879d65c997e2789177ed74240a13d713dd7d88f82105fb616eaabc3574c2bc341fb1f71e5c447ff8f741009eb4e3de77cda1c +MISC metadata.xml 330 SHA256 4430cc2478a7c4c696e658fe764c698be8c78ab8266c495d70b4981233e3fabc SHA512 7e42c10fd3d1317f13955d4410f5ee5284925305bd669746695eca4e84d81b7913b1ba84fb14b27ad556c339c0772b3ef96c8063b44574def2b6d9019fdb03d1 WHIRLPOOL 9d46a3872eedb5b6fcde06391ddb6bff58ae497b4441f1dd012f87608d2fbd404368fcd5def19b45e496ed75fad13a191c637aaa15a568bfddc050a19f0c8bee diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch b/media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch new file mode 100644 index 000000000000..7d7ac3e36359 --- /dev/null +++ b/media-gfx/mypaint/files/mypaint-1.1.0-build-env-vars.patch @@ -0,0 +1,53 @@ +From 516d184b5db8ebdd8b184ef871050c3ab3f03fdf Mon Sep 17 00:00:00 2001 +From: Andrew Chadwick <andrewc-git@piffle.org> +Date: Sun, 21 Apr 2013 22:51:05 +0100 +Subject: [PATCH] SConstruct: support standard build environ vars + +Support the standard build environment vars CC, CXX, CFLAGS, CXXFLAGS, +CPPFLAGS, and LDFLAGS everywhere. + +Partially addresses https://gna.org/bugs/?20754 +--- + SConstruct | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +diff --git a/SConstruct b/SConstruct +index 0b55da1..ef39b9e 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -1,6 +1,7 @@ + import os, sys + from os.path import join, basename + from SCons.Script.SConscript import SConsEnvironment ++import SCons.Util + + EnsureSConsVersion(1, 0) + +@@ -45,6 +46,24 @@ print('using %r (use scons python_config=xxx to change)' % env['python_config']) + if sys.platform == "win32": + # remove this mingw if trying VisualStudio + env = Environment(tools=tools + ['mingw'], ENV=os.environ, options=opts) ++ ++# Respect some standard build environment stuff ++if os.environ.has_key('CC'): ++ env['CC'] = os.environ['CC'] ++if os.environ.has_key('CFLAGS'): ++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) ++if os.environ.has_key('CXX'): ++ env['CXX'] = os.environ['CXX'] ++if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) ++if os.environ.has_key('CPPFLAGS'): ++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS']) ++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CPPFLAGS']) ++if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) ++if "$CCFLAGS" in env['CXXCOM']: ++ env['CXXCOM'] = env['CXXCOM'].replace("$CCFLAGS","") ++ + opts.Update(env) + + env.Append(CXXFLAGS=' -Wall -Wno-sign-compare -Wno-write-strings') +-- +1.7.10.4 + diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch b/media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch new file mode 100644 index 000000000000..b992131bf29e --- /dev/null +++ b/media-gfx/mypaint/files/mypaint-1.1.0-desktop.patch @@ -0,0 +1,24 @@ +From: Andrew Chadwick <andrewc-git@piffle.org> +Date: Tue, 8 Jan 2013 13:53:01 +0000 +Subject: desktop: remove deprecated Encoding key + +The Encoding key is deprecated as of 1.0 of the Desktop Entry Specification +(8 Jan 2012) + +http://standards.freedesktop.org/desktop-entry-spec/1.0/apc.html +--- + desktop/mypaint.desktop | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/desktop/mypaint.desktop b/desktop/mypaint.desktop +index 9850b54..24383db 100644 +--- a/desktop/mypaint.desktop ++++ b/desktop/mypaint.desktop +@@ -1,6 +1,5 @@ + [Desktop Entry] + Version=1.0 +-Encoding=UTF-8 + Name=MyPaint + TryExec=mypaint + Exec=mypaint %f +-- diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch b/media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch new file mode 100644 index 000000000000..f2aa9b9a0edf --- /dev/null +++ b/media-gfx/mypaint/files/mypaint-1.1.0-json-c-0.11.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/show_bug.cgi?id=467322 +Patch-by: Helmut Jarausch <jarausch@igpm.rwth-aachen.de> +Fixes pkgconfig name for new json-c (since 0.11) + +--- brushlib/SConscript.ORIG 2012-12-31 18:03:38.000000000 +0100 ++++ brushlib/SConscript 2013-04-26 11:47:27.008232199 +0200 +@@ -73,7 +73,7 @@ + + env.Append(CPPPATH='./') + +-pkg_deps = ['json'] ++pkg_deps = ['json-c'] + libs = ['m'] + linkflags = [] + diff --git a/media-gfx/mypaint/metadata.xml b/media-gfx/mypaint/metadata.xml new file mode 100644 index 000000000000..715f5d8b25b1 --- /dev/null +++ b/media-gfx/mypaint/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hwoarang@gentoo.org</email> + <name>Markos Chandras</name> + </maintainer> + <upstream> + <remote-id type="github">mypaint/mypaint</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild b/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild new file mode 100644 index 000000000000..e0a166f92e93 --- /dev/null +++ b/media-gfx/mypaint/mypaint-1.1.0-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1 + +DESCRIPTION="fast and easy graphics application for digital painters" +HOMEPAGE="http://mypaint.intilinux.com/" +SRC_URI="http://download.gna.org/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW" +for x in ${LANGS}; do + IUSE+="linguas_${x} " +done + +RDEPEND=" + dev-python/pygtk:2[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pycairo-1.4[${PYTHON_USEDEP}] + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + >=dev-libs/json-c-0.11:= + media-libs/lcms:2 + media-libs/libpng:0= + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND} + dev-lang/swig + virtual/pkgconfig" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + # multilib support + sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \ + SConstruct SConscript || die + # respect CXXFLAGS,CXX,LDFLAGS + epatch "${FILESDIR}"/${P}-build-env-vars.patch + # fix mypaint.desktop + epatch "${FILESDIR}"/${P}-desktop.patch + # pkgconfig patch for json-c-0.11. 467322 + epatch "${FILESDIR}"/${P}-json-c-0.11.patch +} + +src_compile() { + #workaround scons bug with locales. Bug #352700 + export LANG="en_US.UTF-8" + tc-export CC CXX + escons +} + +src_install () { + escons prefix="${D}/usr" install + newicon pixmaps/${PN}_logo.png ${PN}.png + for x in ${LANGS}; do + if ! has ${x} ${LINGUAS}; then + rm -rf "${ED}"/usr/share/locale/${x} || die + fi + done + + python_optimize "${D}"usr/share/${PN} + # not used and broken + rm -rf "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} diff --git a/media-gfx/mypaint/mypaint-1.2.0.ebuild b/media-gfx/mypaint/mypaint-1.2.0.ebuild new file mode 100644 index 000000000000..f95ce3047dfc --- /dev/null +++ b/media-gfx/mypaint/mypaint-1.2.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1 + +DESCRIPTION="fast and easy graphics application for digital painters" +HOMEPAGE="http://mypaint.org/" +SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW" +for x in ${LANGS}; do + IUSE+="linguas_${x} " +done + +RDEPEND=" + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pycairo-1.4[${PYTHON_USEDEP}] + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + >=dev-libs/json-c-0.11:= + media-libs/lcms:2 + media-libs/libpng:0= + gnome-base/librsvg + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND} + dev-lang/swig + virtual/pkgconfig" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + # multilib support + sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \ + SConstruct SConscript || die +} + +src_compile() { + #workaround scons bug with locales. Bug #352700 + export LANG="en_US.UTF-8" + tc-export CC CXX + escons +} + +src_install () { + escons prefix="${D}/usr" install + newicon pixmaps/${PN}_logo.png ${PN}.png + for x in ${LANGS}; do + if ! has ${x} ${LINGUAS}; then + rm -rf "${ED}"/usr/share/locale/${x} || die + fi + done + + python_optimize "${D}"usr/share/${PN} + # not used and broken + rm -rf "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} diff --git a/media-gfx/mypaint/mypaint-1.2.1.ebuild b/media-gfx/mypaint/mypaint-1.2.1.ebuild new file mode 100644 index 000000000000..9b65292a4a45 --- /dev/null +++ b/media-gfx/mypaint/mypaint-1.2.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit fdo-mime gnome2-utils multilib scons-utils toolchain-funcs python-single-r1 + +DESCRIPTION="fast and easy graphics application for digital painters" +HOMEPAGE="http://mypaint.org/" +SRC_URI="https://github.com/mypaint/${PN}/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +LANGS="cs de en_CA en_GB es fr hu id it ja ko nb nn_NO pl pt_BR ro ru sl sv uk zh_CN zh_TW" +for x in ${LANGS}; do + IUSE+="linguas_${x} " +done + +RDEPEND=" + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pycairo-1.4[${PYTHON_USEDEP}] + || ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-libs/protobuf[python,${PYTHON_USEDEP}] + ) + >=dev-libs/json-c-0.11:= + media-libs/lcms:2 + >=media-libs/libmypaint-1.3.0 + media-libs/libpng:0= + gnome-base/librsvg + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND} + dev-lang/swig + virtual/pkgconfig" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + default + + # multilib support + sed -i -e "s:lib\/${PN}:$(get_libdir)\/${PN}:" \ + SConstruct SConscript || die +} + +src_compile() { + #workaround scons bug with locales. Bug #352700 + export LANG="en_US.UTF-8" + tc-export CC CXX + escons +} + +src_install () { + escons prefix="${D}/usr" install + newicon pixmaps/${PN}_logo.png ${PN}.png + for x in ${LANGS}; do + if ! has ${x} ${LINGUAS}; then + rm -rf "${ED}"/usr/share/locale/${x} || die + fi + done + + python_optimize "${D}"usr/share/${PN} + # not used and broken + rm -r "${ED}"/usr/{include/,lib/libmypaint.a,lib/pkgconfig/} || die + # already provided by system-libmypaint + rm "${ED}"/usr/share/locale/*/LC_MESSAGES/libmypaint* || die +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} |