blob: e25b92034df10e5aa5ac6f0fb21478e015397626 (
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
37
38
39
40
41
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/stardict-1.3.ebuild,v 1.1 2002/12/03 12:53:51 seemant Exp $
IUSE=""
DESCRIPTION="stardict - English-Chinese dictionary."
HOMEPAGE="" # No known homepage - FIXME
SRC_URI="ftp://ftp.cn.FreeBSD.org/pub/ported/${P}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="~x86"
DEPEND="x11-libs/openmotif"
RDEPEND="${DEPEND}"
S=${WORKDIR}/zh-${P}
src_unpack () {
unpack ${A}
cd ${S}
patch -p1 < ${FILESDIR}/stardict-gentoo.patch || die
}
src_compile() {
./configure --prefix=/usr
make all || die
}
src_install () {
make prefix=${D}/usr install || die
insinto /usr/share/stardict
doins ${FILESDIR}/stardict-config.sh
dodoc doc/faq doc/readme.txt doc/readme_en.txt
}
pkg_postinst () {
einfo
einfo ' To set up stardict with the correct'
einfo ' font for Big5 or GB run'
einfo ' "bash /usr/share/stardict/stardict-config.sh"'
einfo
}
|