Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 364129
Collapse All | Expand All

(-)iscan-network-nt-1.1.1.1.ebuild (-7 / +19 lines)
Lines 2-23 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: $
3
# $Header: $
4
4
5
EAPI=4
5
EAPI=6
6
6
7
inherit rpm versionator multilib
7
inherit versionator multilib
8
8
9
MY_PV="$(get_version_component_range 1-3)"
9
MY_PV="$(get_version_component_range 1-3)"
10
MY_PVR="$(replace_version_separator 3 -)"
10
MY_PVR="$(replace_version_separator 3 -)"
11
S="${WORKDIR}"
11
S="${WORKDIR}"
12
DL_PN="iscan-bundle"
13
DL_VER="1.0.1"
14
if [[ ${ARCH} = 'amd64' ]]; then
15
	DL_ARCH="x64"
16
	PKG_ARCH="amd64"
17
else
18
	DL_ARCH="x86"
19
	PKG_ARCH="amd64"
20
fi
12
21
13
DESCRIPTION="Image Scan! for Linux network plugin package for SANE 'epkowa' backend"
22
DESCRIPTION="Image Scan! for Linux network plugin package for SANE 'epkowa' backend"
14
HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
23
HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
15
SRC_URI="x86?  ( http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/02/49/93/67635720ac0b8d413610f3ed139faba2a3855c05/${PN}-${MY_PVR}.i386.rpm )
24
SRC_URI="x86?  ( https://download2.ebz.epson.net/iscan/general/deb/${DL_ARCH}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb.tar.gz )
16
		 amd64?  ( http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/02/49/93/668e593a30ec6e7f1e04843d6a90a991a618d99a/${PN}-${MY_PVR}.x86_64.rpm )"
25
		 amd64?  ( https://download2.ebz.epson.net/iscan/general/deb/${DL_ARCH}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb.tar.gz )"
17
26
18
LICENSE="AVASYS"
27
LICENSE="AVASYS"
19
SLOT="0"
28
SLOT="0"
20
KEYWORDS="~x86 ~amd64"
29
#KEYWORDS="~x86 ~amd64"
21
IUSE=""
30
IUSE=""
22
31
23
DEPEND="media-gfx/iscan"
32
DEPEND="media-gfx/iscan"
Lines 27-37 Link Here
27
src_compile () { :; }
36
src_compile () { :; }
28
37
29
src_install() {
38
src_install() {
30
	dodoc ${S}/usr/share/doc/${PN}-${MY_PV}/README ${S}/usr/share/doc/${PN}-${MY_PV}/NEWS ${S}/usr/share/doc/${PN}-${MY_PV}/AVASYSPL.en.txt
39
	cd ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins
40
	bsdtar -xf ${PN}_${MY_PVR}_${PKG_ARCH}.deb
41
	bsdtar -xf data.tar.gz
42
	dodoc ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/README ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/NEWS.gz ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/AVASYSPL.en.txt
31
43
32
	insinto /usr/$(get_libdir)/iscan/
44
	insinto /usr/$(get_libdir)/iscan/
33
	insopts -m0755
45
	insopts -m0755
34
	doins ${S}/usr/$(get_libdir)/iscan/network
46
	doins ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/lib/iscan/network
35
}
47
}
36
48
37
pkg_postinst() {
49
pkg_postinst() {
(-)iscan-network-nt-1.1.1.1.ebuild (-6 / +18 lines)
Lines 2-19 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: $
3
# $Header: $
4
4
5
EAPI=4
5
EAPI=6
6
6
7
inherit rpm versionator multilib
7
inherit versionator multilib
8
8
9
MY_PV="$(get_version_component_range 1-3)"
9
MY_PV="$(get_version_component_range 1-3)"
10
MY_PVR="$(replace_version_separator 3 -)"
10
MY_PVR="$(replace_version_separator 3 -)"
11
S="${WORKDIR}"
11
S="${WORKDIR}"
12
DL_PN="iscan-bundle"
13
DL_VER="1.0.1"
14
if [[ ${ARCH} = 'amd64' ]]; then
15
	DL_ARCH="x64"
16
	PKG_ARCH="amd64"
17
else
18
	DL_ARCH="x86"
19
	PKG_ARCH="amd64"
20
fi
12
21
13
DESCRIPTION="Image Scan! for Linux network plugin package for SANE 'epkowa' backend"
22
DESCRIPTION="Image Scan! for Linux network plugin package for SANE 'epkowa' backend"
14
HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
23
HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
15
SRC_URI="x86?  ( http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/02/49/93/67635720ac0b8d413610f3ed139faba2a3855c05/${PN}-${MY_PVR}.i386.rpm )
24
SRC_URI="x86?  ( https://download2.ebz.epson.net/iscan/general/deb/${DL_ARCH}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb.tar.gz )
16
		 amd64?  ( http://a1227.g.akamai.net/f/1227/40484/7d/download.ebz.epson.net/dsc/f/01/00/02/49/93/668e593a30ec6e7f1e04843d6a90a991a618d99a/${PN}-${MY_PVR}.x86_64.rpm )"
25
		 amd64?  ( https://download2.ebz.epson.net/iscan/general/deb/${DL_ARCH}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb.tar.gz )"
17
26
18
LICENSE="AVASYS"
27
LICENSE="AVASYS"
19
SLOT="0"
28
SLOT="0"
Lines 27-37 Link Here
27
src_compile () { :; }
36
src_compile () { :; }
28
37
29
src_install() {
38
src_install() {
30
	dodoc ${S}/usr/share/doc/${PN}-${MY_PV}/README ${S}/usr/share/doc/${PN}-${MY_PV}/NEWS ${S}/usr/share/doc/${PN}-${MY_PV}/AVASYSPL.en.txt
39
	cd ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins
40
	bsdtar -xf ${PN}_${MY_PVR}_${PKG_ARCH}.deb
41
	bsdtar -xf data.tar.gz
42
	dodoc ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/README ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/NEWS.gz ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/share/doc/${PN}/AVASYSPL.en.txt
31
43
32
	insinto /usr/$(get_libdir)/iscan/
44
	insinto /usr/$(get_libdir)/iscan/
33
	insopts -m0755
45
	insopts -m0755
34
	doins ${S}/usr/$(get_libdir)/iscan/network
46
	doins ${S}/${DL_PN}-${DL_VER}.${DL_ARCH}.deb/plugins/usr/lib/iscan/network
35
}
47
}
36
48
37
pkg_postinst() {
49
pkg_postinst() {

Return to bug 364129