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/iscan-plugin-gt-x770 |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/iscan-plugin-gt-x770')
-rw-r--r-- | media-gfx/iscan-plugin-gt-x770/Manifest | 6 | ||||
-rw-r--r-- | media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild | 89 | ||||
-rw-r--r-- | media-gfx/iscan-plugin-gt-x770/metadata.xml | 20 |
3 files changed, 115 insertions, 0 deletions
diff --git a/media-gfx/iscan-plugin-gt-x770/Manifest b/media-gfx/iscan-plugin-gt-x770/Manifest new file mode 100644 index 000000000000..98d5ab698c5a --- /dev/null +++ b/media-gfx/iscan-plugin-gt-x770/Manifest @@ -0,0 +1,6 @@ +DIST iscan-plugin-gt-x770-2.1.2-1.i386.rpm 462166 SHA256 8ce99f42e302d6686f71c3e697f75ca1eb608af72d5986d785c9cf8bc4bd93fc SHA512 b8c16dd1c3d2d8f01956a72a170fa9b51520c78ab9d2d0cd581ee1b18760a28693d364e3bc3ac50a4f1c794fb4da777d452fe12ae3cf513a06eb5bedd2543b30 WHIRLPOOL 696dfe85f2d0cb49525e310f76adb73a68406b6a66e531b49ddadef9d0d696b7d9623aae481834279a4840bd0c63c72183acaccba4dda397d04ec9528255f8f7 +DIST iscan-plugin-gt-x770-2.1.2-1.x86_64.rpm 196426 SHA256 87db6217232e0ce6ee2f50183f831fd923aaa76b34e0da7445f4cd7bcad5b902 SHA512 a69830fb35b2732351b35ef39a6863886bf6bc992242188e57d273444ea17e55294b5b9331c5e770b8af179e4f346e5be74c5fd79e1e6cefd2a1e975c3e68a43 WHIRLPOOL 1c79c49c9d31f37f061a8e314e53f1d8846a64d448b73c1c503ea8dc1c90d11b1142c26ee4618117041de9e78c395643506d9d7e8821cef3cd84b0ba0b3457b6 +EBUILD iscan-plugin-gt-x770-2.1.2.1-r3.ebuild 2186 SHA256 aaf324448b6d423f142550ee27a25c88b48473c29cb997ab756410cbb3156fdf SHA512 405c062938edb045612d4589e9a3d39b87826e931ca19a15ef7093ecfff9ee295c235deebc2581fa733928fbbc893c3a01b491b38449ada022349163143704a5 WHIRLPOOL c189a9487eaaf8207b5a2dbd6cb1c5178c2334608e9fdb345b6d7f03a9881e365a96a79296fd0389ae553b31531b7d256db66446d7286d23157540a7fc1f3fd2 +MISC ChangeLog 2639 SHA256 f53aff2033049aeae9a73255a8b9bd265fa9ea3ba5a277055f509aca975af59b SHA512 8dfdaedca74fce5a931c98ddd11f74a7b6cd9264577d0efd14f3eec9991014d4d63d94977ecf16c328ce2704b08b17cb95ea9a03c482f07543c49b97be3d47ab WHIRLPOOL ccabae1a2dc280012f2551bf289bd41c508717847acbfc031ca297300508e9a82b7d8966336769dc6231053b0354bc36721f1409abfcb1ed6c08a3c2c7676033 +MISC ChangeLog-2015 1184 SHA256 cf988cef0728e0d567b7945a05cfed729091380424b70a9290f5c8f495ef32d4 SHA512 782ed100aaecd01f1debef66b8c6e48c3af5892be0e02780017fba97bded8eb166ea9f166c03a83237c027010f5bd5d3f93d9a1f44d4a569e9112077b7e2e1ef WHIRLPOOL 9c7bf00e17a59b54ed72a45824e778991779e1598cc185eb68c967269fc92710bcdc13303c091d3a0c81fc0acd59b72c67d16e4d0af8b12ad15b3c94490b4d70 +MISC metadata.xml 634 SHA256 8b657c507dfbbb69e4f7f01748cfabbf67ca2f7728785071d083d917010c2903 SHA512 5ec1987c34a9c70cb81ede5b5f91d859e01d036c3a82a2b187fb4553ed6c18f6404954acabc67138e6bd249a3d9ab4e1025be66f660613c21a79aa39fbf07c6a WHIRLPOOL b0bb0858cf0d08426e126e3b527cfea4092d311379886568e4b6a64b0ca325fa37cccc2767a9908331a0728d799ceb2ad1be9867d5766e4706eb775172f3e47e diff --git a/media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild b/media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild new file mode 100644 index 000000000000..380f3d1e59ea --- /dev/null +++ b/media-gfx/iscan-plugin-gt-x770/iscan-plugin-gt-x770-2.1.2.1-r3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit rpm versionator multilib + +MY_PV="$(get_version_component_range 1-3)" +MY_PVR="$(replace_version_separator 3 -)" + +DESCRIPTION="Epson Perfection V500 scanner plugin for SANE 'epkowa' backend" +HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" +SRC_URI=" + x86? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}/${MY_PV}/${PN}-${MY_PVR}.i386.rpm ) + amd64? ( https://dev.gentoo.org/~flameeyes/avasys/${PN}/${MY_PV}/${PN}-${MY_PVR}.x86_64.rpm ) +" + +LICENSE="AVASYS" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +IUSE="" + +DEPEND=">=media-gfx/iscan-2.21.0 + !!<media-gfx/iscan-plugin-gt-x770-2.1.2.1-r2" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +QA_PREBUILT="/opt/iscan/esci/libesint7C.so*" + +src_configure() { :; } +src_compile() { :; } + +src_install() { + # install scanner firmware + insinto /usr/share/iscan + doins "${WORKDIR}/usr/share/iscan/"* + + dodoc usr/share/doc/*/* + + # install scanner plugins + exeinto /opt/iscan/esci + doexe "${WORKDIR}/usr/$(get_libdir)/iscan/"* +} + +pkg_setup() { + basecmds=( + "iscan-registry --COMMAND interpreter usb 0x04b8 0x0130 /opt/iscan/esci/libesint7C /usr/share/iscan/esfw7C.bin" + ) +} + +pkg_postinst() { + elog + elog "Firmware file esfw41.bin for Epson Perfection V500" + elog "has been installed in /usr/share/iscan." + elog + + [[ -n ${REPLACING_VERSIONS} ]] && return + + # Needed for scanner to work properly. + if [[ ${ROOT} == "/" ]]; then + for basecmd in "${basecmds[@]}"; do + eval ${basecmd/COMMAND/add} + done + else + ewarn "Unable to register the plugin and firmware when installing outside of /." + ewarn "execute the following command yourself:" + for basecmd in "${basecmds[@]}"; do + ewarn "${basecmd/COMMAND/add}" + done + fi +} + +pkg_prerm() { + [[ -n ${REPLACED_BY_VERSION} ]] && return + + if [[ ${ROOT} == "/" ]]; then + for basecmd in "${basecmds[@]}"; do + eval ${basecmd/COMMAND/remove} + done + else + ewarn "Unable to de-register the plugin and firmware when installing outside of /." + ewarn "execute the following command yourself:" + for basecmd in "${basecmds[@]}"; do + ewarn "${basecmd/COMMAND/remove}" + done + fi +} diff --git a/media-gfx/iscan-plugin-gt-x770/metadata.xml b/media-gfx/iscan-plugin-gt-x770/metadata.xml new file mode 100644 index 000000000000..542b0a3df39d --- /dev/null +++ b/media-gfx/iscan-plugin-gt-x770/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mattsch@gmail.com</email> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + Proprietary plugin for several EPSON scanner models, to be used + with the epkowa SANE backend (provided by + <pkg>media-gfx/iscan</pkg>). 32-bit and 64-bit. + + Supports the following models: + + EPSON Perfection V500 (GT-X770) + </longdescription> +</pkgmetadata> |