From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-gfx/sane-frontends/Manifest | 7 +++ .../sane-frontends/files/MissingCapsFlag.patch | 12 +++++ media-gfx/sane-frontends/metadata.xml | 5 ++ .../sane-frontends/sane-frontends-1.0.14-r1.ebuild | 54 +++++++++++++++++++++ .../sane-frontends/sane-frontends-1.0.14.ebuild | 55 ++++++++++++++++++++++ 5 files changed, 133 insertions(+) create mode 100644 media-gfx/sane-frontends/Manifest create mode 100644 media-gfx/sane-frontends/files/MissingCapsFlag.patch create mode 100644 media-gfx/sane-frontends/metadata.xml create mode 100644 media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild create mode 100644 media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild (limited to 'media-gfx/sane-frontends') diff --git a/media-gfx/sane-frontends/Manifest b/media-gfx/sane-frontends/Manifest new file mode 100644 index 000000000000..8afa51213755 --- /dev/null +++ b/media-gfx/sane-frontends/Manifest @@ -0,0 +1,7 @@ +AUX MissingCapsFlag.patch 417 SHA256 b9b4738a01cc354268940d1bfcb484ef83b96c78a284708b8c5678dbd5f61a90 SHA512 39790a52414a7edcfc4dd9379bd8f35ce91e932209ba9c2ab3f1cb9e5dd140b37f3bfed1e642050a142da43ae435329ab60e201f2934be76648380615a3f37ef WHIRLPOOL c467818dfcf57b05eb707a506a28133e2b400d5dbca17ed637fcca85471301454cb3df5486c450c8ec9205f7287808a5a238f4718af10583f5674fd8bc2863f9 +DIST sane-frontends-1.0.14.tar.gz 231892 SHA256 e7839dac1b70b5bb39124615aba8a136f5275d0e78bafd3d52ed76964ffea4a9 SHA512 51b24a9bd6889e99419c1d6abb30cb14d8f89b6196c5147044697bdb1b39ee029bdc0d7c6e1f1e800491988aa26f658bc974b25040c49d008ca8977673c78710 WHIRLPOOL 734abe5322f0726eabfa7e7f6287d98315bcf7e24f9d06a3cf7248c408f0b055438261a73ae29ce102760403d94f1905cf596756eb42f63e747e2a55a4c5b000 +EBUILD sane-frontends-1.0.14-r1.ebuild 1386 SHA256 cd8c4b891b6187194824709c813b67d78bddbd61885b0943c1c3be1d684222e9 SHA512 01f6cda1eb98c511aab5445ec580df175e0bc8f6498c7693916a3931b714d926640797d2bfab5119b7487f3684ac7f132f8a4112f1fb9768a1b75ce9d4b1f88f WHIRLPOOL 74c652c75ec6d9b57c1127916ee5f4e7e53a298e31f3e5dd50649c62bb1d4b4763e6379b76225bba97701dbbbd868ed962f59ecad78ab77f762d5730d40948d0 +EBUILD sane-frontends-1.0.14.ebuild 1430 SHA256 84a8a5f6adedeb5612b76b413f50a24a088d041311184072d98a64378130ab58 SHA512 0f433d8f9915d2ba644b3d76e04e9b3bd208a8c9f3c62067203e0e5b571deab87f2577114f846143d3ca860ecfca9b383a8a3d0f470047009754ae0853ca4e30 WHIRLPOOL f995262713d6fc957be1603acf1def1b93a4f8e5798c37288642022d8ca71abef34e8bc6bc0c64dce3ea05603b39612d5ba6e65ad83947099a81cd716a6ed768 +MISC ChangeLog 2576 SHA256 341f98109b8b0729e3acd997adaa42c10aefcf1964cd5f8e30a95e1b13183bc9 SHA512 b7898950e80492ece04f932b6476a4c70296de1065bb443c5180d5111eeaf7e5577e88a0bcd8bffa63c2e6ead753d32e5d656b3286a8205bfff93b7dd1b39c34 WHIRLPOOL feadfcc356d49605514c009e6a2d715e2aa262de9ff4f19e1d4f0af085cbbc1442d92c05ae534b87ee0bdc85e5d516c4694088470fcf1f941fc9ca2e51e662d9 +MISC ChangeLog-2015 5933 SHA256 6bc6047c7b9ba3f836fb1698fbff74fbca17907f25059fe0b10fc372ba6ecc75 SHA512 8966c60bbc6f1750ae5ed301ee897b64f6846ebc564714e0aeb9418398a8198055b9022af0d5d1fa1d0a235aa86194f412037d11b25fdda4807f246a4b264849 WHIRLPOOL 8a025a631a7a544d209b46827152ab078e38af115465f2f2d561492954ff87813ce267c759d7db5a5b29f4a2ce45fdf2454d204b33f5e00eb773a0320247fe50 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/media-gfx/sane-frontends/files/MissingCapsFlag.patch b/media-gfx/sane-frontends/files/MissingCapsFlag.patch new file mode 100644 index 000000000000..226ca085713c --- /dev/null +++ b/media-gfx/sane-frontends/files/MissingCapsFlag.patch @@ -0,0 +1,12 @@ +--- a/src/gtkglue.c 2005-04-16 15:12:07.000000000 +0200 ++++ b/src/gtkglue.c 2009-06-24 00:26:46.000000000 +0200 +@@ -1476,8 +1476,7 @@ + || opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget) + continue; + +- if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE)) +- gtk_widget_set_sensitive (dialog->element[i].widget, sensitive); ++ gtk_widget_set_sensitive (dialog->element[i].widget, sensitive); + } + } + diff --git a/media-gfx/sane-frontends/metadata.xml b/media-gfx/sane-frontends/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/media-gfx/sane-frontends/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild new file mode 100644 index 000000000000..26cd1d46586c --- /dev/null +++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="Scanner Access Now Easy" +HOMEPAGE="http://www.sane-project.org" +SRC_URI="ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz + ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="gimp" + +RDEPEND="" +DEPEND="media-gfx/sane-backends + gimp? ( media-gfx/gimp )" + +PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" ) + +src_configure () { + local myconf="" + use gimp || myconf="--disable-gimp" + use gimp && ! has_version ">=media-gfx/gimp-2" && myconf="--enable-gimp12" + econf \ + --datadir=/usr/share/misc \ + ${myconf} + emake +} + +src_install () { + local gimpplugindir + local gimptool + emake DESTDIR="${D}" install + if use gimp; then + for gimptool in gimptool gimptool-2.0 gimptool-1.2; do + if [ -x /usr/bin/${gimptool} ]; then + einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)" + gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins + break + fi + done + if [ "/plug-ins" != "${gimpplugindir}" ]; then + dodir ${gimpplugindir} + dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage + else + ewarn "No idea where to find the gimp plugin directory" + fi + fi + dodoc AUTHORS Changelog NEWS PROBLEMS README +} diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild new file mode 100644 index 000000000000..536163b61125 --- /dev/null +++ b/media-gfx/sane-frontends/sane-frontends-1.0.14.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="Scanner Access Now Easy" +HOMEPAGE="http://www.sane-project.org" +SRC_URI="ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz + ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc ppc64 sparc x86" +IUSE="gimp" + +DEPEND="media-gfx/sane-backends + gimp? ( media-gfx/gimp )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/MissingCapsFlag.patch" +} + +src_compile() { + local myconf="" + use gimp || myconf="--disable-gimp" + use gimp && ! has_version ">=media-gfx/gimp-2" && myconf="--enable-gimp12" + econf \ + --datadir=/usr/share/misc \ + ${myconf} || die + emake || die "emake failed" +} + +src_install() { + local gimpplugindir + local gimptool + emake DESTDIR="${D}" install || die + if use gimp; then + for gimptool in gimptool gimptool-2.0 gimptool-1.2; do + if [ -x /usr/bin/${gimptool} ]; then + einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)" + gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins + break + fi + done + if [ "/plug-ins" != "${gimpplugindir}" ]; then + dodir ${gimpplugindir} + dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage + else + ewarn "No idea where to find the gimp plugin directory" + fi + fi + dodoc AUTHORS Changelog NEWS PROBLEMS README +} -- cgit v1.2.3