diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-12-31 22:37:52 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-12-31 22:37:52 +0200 |
commit | d59f5f405188d93f5c00e21840930d4f1eaf8dd1 (patch) | |
tree | 91af19c93a18c173b81109aefffa90fbd41ac230 /media-gfx/xsane-gimp | |
parent | ea8a28a03b13e387b14c15c0eb3e3f8be42ab0b4 (diff) |
Added media gfx,libs,sound
Diffstat (limited to 'media-gfx/xsane-gimp')
-rw-r--r-- | media-gfx/xsane-gimp/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/xsane-gimp/xsane-gimp-0.998-r1.ebuild | 63 | ||||
-rw-r--r-- | media-gfx/xsane-gimp/xsane-gimp-0.999.ebuild | 65 |
3 files changed, 131 insertions, 0 deletions
diff --git a/media-gfx/xsane-gimp/Manifest b/media-gfx/xsane-gimp/Manifest new file mode 100644 index 00000000..761b25d6 --- /dev/null +++ b/media-gfx/xsane-gimp/Manifest @@ -0,0 +1,3 @@ +DIST xsane-0.998-patches-2.tar.xz 54804 SHA256 84af533cba6309cf44892da8952b6203daa4dcfaf64e2efd1dddc5144e4cab4c SHA512 973ccac2fe3b6089049c1c5ba3e4cb0db29fdc79de372f8a7b461ee108e5bfc3f4a84997552fc3d3b651bbe9f98d247a5974d90e8949089b2ea52118eab6ad1f WHIRLPOOL 2294601aa696c442e8d2b5173b8ee04d158439e0ae02dd22c7d5c8f9fce98c8238a42e0867a5e511d206dd4030f7a15df2a98676471abe1e91870883662add56 +DIST xsane-0.998.tar.gz 2950560 SHA256 a32e2f8057782a29619f082dcf6b5f944bf12abe3d4121c516f7c9589064c26e SHA512 8cf6f01e706175cb4df88effe13c0547624bd62b08f485118279a9bcde77b9a555f3148b24f3d6348157868f50bfa450f413a20a514b4f0218579b75f642fc04 WHIRLPOOL 424c2050b2abf0d647adef7a0d22ee3c19d57ebc21d888d97667f82243c2ef10b5d99fef15a15da6f900f25f1aae3914824c87e71141a75a3dd6b1b44a0b0e4c +DIST xsane-0.999.tar.gz 2950621 SHA256 5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b SHA512 73ec961fce1a86b5d6f5bac0995d222785eb4b077dc8e72492b092d2bf4500455426e80e4d27233721cd38ec84f77fb9f92190a6afe45bdaf7ffd1ee50b431ed WHIRLPOOL 7d50f6ecd8ad671d36a6b92eb365a6361da8d90bfea3136cf7add0890313294903f8cbc75684cbc24e42a028f83922a0308783fb20d89b0d6b14b1f949283ad5 diff --git a/media-gfx/xsane-gimp/xsane-gimp-0.998-r1.ebuild b/media-gfx/xsane-gimp/xsane-gimp-0.998-r1.ebuild new file mode 100644 index 00000000..ad80c7dd --- /dev/null +++ b/media-gfx/xsane-gimp/xsane-gimp-0.998-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +inherit eutils + +DESCRIPTION="XSane plugin for GIMP" +HOMEPAGE="http://www.xsane.org/" +MY_P="${P/-gimp}" +SRC_URI="http://www.xsane.org/download/${MY_P}.tar.gz + http://dev.gentoo.org/~dilfridge/distfiles/${MY_P}-patches-2.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND="media-gfx/sane-backends + ~media-gfx/xsane-${PV}[-gimp] + media-gfx/gimp" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Apply multiple fixes from different distributions + epatch "${WORKDIR}/${MY_P}-patches-2"/*.patch +} + +src_configure() { + econf --enable-gtk2 \ + $(use_enable nls) \ + --disable-jpeg \ + --disable-png \ + --disable-tiff \ + --disable-lcms \ + --disable-sanetest +} + +src_install() { + # link xsane so it is seen as a plugin in gimp + local plugindir + if [ -x /usr/bin/gimptool ]; then + plugindir="$(gimptool --gimpplugindir)/plug-ins" + elif [ -x /usr/bin/gimptool-2.0 ]; then + plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" + else + die "Can't find GIMP plugin directory." + fi + newbin src/xsane xsane-gimp + dodir "${plugindir}" + dosym /usr/bin/xsane-gimp "${plugindir}"/xsane +} + +pkg_postinst() { + elog "If a new scanner is added or the device of the the scanner has" + elog "changed, it is recommended to rebuild the cache:" + elog "issue \"touch /usr/bin/xsane-gimp\" or delete the plugin cache" + elog "(~/.gimp*/pluginrc)." +} diff --git a/media-gfx/xsane-gimp/xsane-gimp-0.999.ebuild b/media-gfx/xsane-gimp/xsane-gimp-0.999.ebuild new file mode 100644 index 00000000..0297f7ee --- /dev/null +++ b/media-gfx/xsane-gimp/xsane-gimp-0.999.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit eutils + +DESCRIPTION="XSane plugin for GIMP" +HOMEPAGE="http://www.xsane.org/" +MY_P="${P/-gimp}" +SRC_URI="http://www.xsane.org/download/${MY_P}.tar.gz + http://dev.gentoo.org/~dilfridge/distfiles/xsane-0.998-patches-2.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND="media-gfx/sane-backends + ~media-gfx/xsane-${PV}[-gimp] + media-gfx/gimp" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Apply multiple fixes from different distributions + # Drop included patch and reuse patchset from prior version + rm "${WORKDIR}/xsane-0.998-patches-2"/005-update-param-crash.patch || die + epatch "${WORKDIR}/xsane-0.998-patches-2"/*.patch + + # Fix compability with libpng15 wrt #377363 + sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/xsane-save.c || die + + # Fix AR calling directly (bug #442606) + sed -i -e 's:ar r:$(AR) r:' lib/Makefile.in || die + tc-export AR +} + +src_configure() { + econf --enable-gtk2 \ + $(use_enable nls) \ + --disable-jpeg \ + --disable-png \ + --disable-tiff \ + --enable-gimp \ + --disable-lcms +} + +src_install() { + # link xsane so it is seen as a plugin in gimp + local plugindir + if [ -x "${EPREFIX}"/usr/bin/gimptool ]; then + plugindir="$(gimptool --gimpplugindir)/plug-ins" + elif [ -x "${EPREFIX}"/usr/bin/gimptool-2.0 ]; then + plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" + else + die "Can't find GIMP plugin directory." + fi + dodir "${plugindir#${EPREFIX}}" + newbin src/xsane xsane-gimp + dosym /usr/bin/xsane-gimp "${plugindir#${EPREFIX}}"/xsane +} |