blob: 6ec616bdf6aac10fadaeaec49dcaa3a00f9ea1f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit nsplugins
DESCRIPTION="Alipay Secure Edit Component"
SRC_URI="https://download.alipay.com/alipaysc/linux/${PN}/${PV}/${PN}.tar.gz"
HOMEPAGE="http://www.alipay.com/"
IUSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="Alipay"
RESTRICT="strip mirror"
RDEPEND="amd64? ( media-libs/libpng:1.2 )
x86? ( media-libs/libpng )
x11-libs/gtk+:2"
src_compile() {
ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' ./aliedit.sh`
tail -n+$ARCHIVE aliedit.sh | tar xzm -C ./
assert
}
src_install() {
insinto "/opt/netscape/plugins"
if use amd64; then
doins "${WORKDIR}/lib/libaliedit64.so" || die "doins failed"
inst_plugin /opt/netscape/plugins/libaliedit64.so
else
doins "${WORKDIR}/lib/libaliedit32.so" || die "doins failed"
inst_plugin /opt/netscape/plugins/libaliedit32.so
fi
}
|