summaryrefslogtreecommitdiff
blob: 76924e8d81484d4d372e61b682ec56772f665b48 (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
42
43
44
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/ami/ami-1.0.11-r2.ebuild,v 1.1 2002/11/09 05:20:42 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Korean IMS Ami"
SRC_URI="http://www.kr.freebsd.org/~hwang/ami/${P}.tar.gz
	http://www.kr.freebsd.org/~hwang/ami/hanja.dic.gz
	ftp://ftp.nnongae.com/pub/gentoo/${P}.patch"
HOMEPAGE="http://www.kr.freebsd.org/~hwang/ami/index.html"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc sparc64"

DEPEND=">=media-libs/gdk-pixbuf-0.7.0"

src_unpack() {
	unpack ${A}
	patch -p0 < ${DISTDIR}/${P}.patch || die
}

src_compile() {
	local config

	# remove gnome-applet for GNOME2
	#use gnome && config="--enable-gnome-applet"

	econf --with-hangul-keyboard=2

	emake || die

	cd ${S}/hanjadic
	emake || die
}

src_install() {
	einstall || die

	gzip -d -c ${DISTDIR}/hanja.dic.gz > ${D}/usr/share/ami/hanja.dic

	dobin ${S}/hanjadic/hanja-hwp2ami
	dodoc AUTHORS COPYING* ChangeLog INSTALL README README.en NEWS THANKS
}