summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-21 14:28:16 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-04-21 14:28:16 +0000
commitc8507d61807c93479eeaf36ed3eb373c175550ef (patch)
tree868bc5d1aaa0c15df364eabd86e449f8951f5846 /media-gfx/iscan-plugin-gt-f500
parentUse FHS layout for WPrefs, to keep in sync with the new default gnustep layout (diff)
downloadhistorical-c8507d61807c93479eeaf36ed3eb373c175550ef.tar.gz
historical-c8507d61807c93479eeaf36ed3eb373c175550ef.tar.bz2
historical-c8507d61807c93479eeaf36ed3eb373c175550ef.zip
Improve ebuild, simplify command handling, only run first time installing/removing, avoid nested ifs.
Package-Manager: portage-2.2.0_alpha30/cvs/Linux x86_64
Diffstat (limited to 'media-gfx/iscan-plugin-gt-f500')
-rw-r--r--media-gfx/iscan-plugin-gt-f500/ChangeLog7
-rw-r--r--media-gfx/iscan-plugin-gt-f500/Manifest10
-rw-r--r--media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild31
3 files changed, 29 insertions, 19 deletions
diff --git a/media-gfx/iscan-plugin-gt-f500/ChangeLog b/media-gfx/iscan-plugin-gt-f500/ChangeLog
index a14f62fe48af..61e77fc610b5 100644
--- a/media-gfx/iscan-plugin-gt-f500/ChangeLog
+++ b/media-gfx/iscan-plugin-gt-f500/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/iscan-plugin-gt-f500
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-plugin-gt-f500/ChangeLog,v 1.1 2011/04/20 23:06:58 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-plugin-gt-f500/ChangeLog,v 1.2 2011/04/21 14:28:16 flameeyes Exp $
+
+ 21 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org>
+ iscan-plugin-gt-f500-1.0.0.1.ebuild:
+ Improve ebuild, simplify command handling, only run first time
+ installing/removing, avoid nested ifs.
*iscan-plugin-gt-f500-1.0.0.1 (20 Apr 2011)
diff --git a/media-gfx/iscan-plugin-gt-f500/Manifest b/media-gfx/iscan-plugin-gt-f500/Manifest
index 68f544bb7100..269f1c410c66 100644
--- a/media-gfx/iscan-plugin-gt-f500/Manifest
+++ b/media-gfx/iscan-plugin-gt-f500/Manifest
@@ -2,13 +2,13 @@
Hash: SHA1
DIST iscan-plugin-gt-f500-1.0.0-1.i386.rpm 124153 RMD160 cf624c88aa6678627b69da06c3f257d7cd5ffd8b SHA1 c0abb811f97f5d1c69b2777946c208b404ad0437 SHA256 91ef3ea74051e55e8f5f3aebe98b456b5b2eea997bdb8ad1dd73389ffccf6398
-EBUILD iscan-plugin-gt-f500-1.0.0.1.ebuild 2181 RMD160 3316a4eb97d11fe25e282b6371596638e950816c SHA1 6e809dbc8670ee13924ed9df5e9f1a65afe24976 SHA256 ada0874eb68e5cfba5fdac44f65ac7af0ea56a6f64fc3f3d71101d067986a81f
-MISC ChangeLog 471 RMD160 f2038b5911844893a88e66521469b480fe574b43 SHA1 22ef6f86bf2b14955046972c112e63610bf7c14e SHA256 27a2baaef5228f93fc3f60b6a641fc0931ad233202dd8b8a79a419c77af052be
+EBUILD iscan-plugin-gt-f500-1.0.0.1.ebuild 2030 RMD160 6e6135eb920213350a4e962f88f9c930fa6f4de0 SHA1 4b74a7c2f5ec045a942e0f33e508fe3d52dff8b0 SHA256 09acae8dbe7be95b5ed4c9553c074ad0ea1b48813ebbfa889bb9491ab4782702
+MISC ChangeLog 673 RMD160 78b949c35da4a6d8d2d75c388fc03eab3c08ef55 SHA1 9a92128c32b73ef27782e2ee0476900d5028ed09 SHA256 180e2c498bdfc9bf974fbc606fb17253c75381faa18c6f832659d1949248a46b
MISC metadata.xml 792 RMD160 bc1c9b06dd3ea55b3a345a25233f92d433117d7c SHA1 4c72c20441004cd1e8ae5ca3d4baf4ac7d7af204 SHA256 56fc60400299f13855309f3d6c0a7e4ca6164ca24df40cb2b4fc48e139d0573c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk2vZvEACgkQAiZjviIA2XinpgCglUrVmYySYqW7HR8lEXlQ7b+L
-GSwAnAgVb+q/XazXnssWcf8UA0UJaxZx
-=+Iq1
+iEYEARECAAYFAk2wPwwACgkQAiZjviIA2XgusgCeLODY9yYrB372TB3oreZkNvKl
+KOMAoJ7Hbxe5CL689nbjGGI16EisW0As
+=rBih
-----END PGP SIGNATURE-----
diff --git a/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild b/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild
index 8a3248431ac1..178bbb2ea0f1 100644
--- a/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild
+++ b/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild,v 1.1 2011/04/20 23:06:58 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan-plugin-gt-f500/iscan-plugin-gt-f500-1.0.0.1.ebuild,v 1.2 2011/04/21 14:28:16 flameeyes Exp $
EAPI="4"
@@ -33,38 +33,43 @@ src_install() {
dodoc "usr/share/doc/${MY_P}/"*
- if ! use minimal; then
- # install scanner plugins
- exeinto "/usr/$(get_libdir)/iscan"
- doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
- fi
+ use minimal && return
+ # install scanner plugins
+ exeinto "/usr/$(get_libdir)/iscan"
+ doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"*
+}
+
+pkg_setup() {
+ basecmd="iscan-registry --COMMAND interpreter usb 0x04b8 0x0121 '/usr/$(get_libdir)/iscan/libesint41.so.2 /usr/share/iscan/esfw41.bin'"
}
pkg_postinst() {
elog
- elog "Firmware file esfw8b.bin for Epson Perfection 2480/2580 PHOTO"
+ elog "Firmware file esfw41.bin for Epson Perfection 2480/2580 PHOTO"
elog "has been installed in /usr/share/iscan."
elog
use minimal && return
+ [[ -n ${REPLACING_VERSIONS} ]] && return
- # Needed for scaner to work properly.
+ # Needed for scanner to work properly.
if [[ ${ROOT} == "/" ]]; then
- iscan-registry --add interpreter usb 0x04b8 0x0121 "/usr/$(get_libdir)/iscan/libesint41.so.2 /usr/share/iscan/esfw41.bin"
+ eval ${basecmd/COMMAND/add}
else
ewarn "Unable to register the plugin and firmware when installing outside of /."
ewarn "execute the following command yourself:"
- ewarn "iscan-registry --add interpreter usb 0x04b8 0x0121 '/usr/$(get_libdir)/iscan/libesint41.so.2 /usr/share/iscan/esfw41.bin'"
+ ewarn "${basecmd/COMMAND/add}"
fi
}
pkg_prerm() {
use minimal && return
+ [[ -n ${REPLACED_BY_VERSION} ]] && return
if [[ ${ROOT} == "/" ]]; then
- iscan-registry --remove interpreter usb 0x04b8 0x0121 "/usr/$(get_libdir)/iscan/libesint41.so.2 /usr/share/iscan/esfw41.bin"
+ eval ${basecmd/COMMAND/remove}
else
- ewarn "Unable to register the plugin and firmware when installing outside of /."
+ ewarn "Unable to de-register the plugin and firmware when installing outside of /."
ewarn "execute the following command yourself:"
- ewarn "iscan-registry --remove interpreter usb 0x04b8 0x0121 '/usr/$(get_libdir)/iscan/libesint41.so.2 /usr/share/iscan/esfw41.bin'"
+ ewarn "${basecmd/COMMAND/remove}"
fi
}