summaryrefslogtreecommitdiff
blob: 5ff4cfc6f3b1c02290a92de38af1930e7ce98184 (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
45
46
47
48
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/xsim/xsim-0.3.9.4.ebuild,v 1.8 2004/06/28 02:07:45 vapier Exp $

DESCRIPTION="A simple and fast GBK Chinese XIM server"
HOMEPAGE="http://developer.berlios.de/projects/xsim/"
SRC_URI="http://download.berlios.de/xsim/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="virtual/libc
	>=sys-libs/db-3.0.0"

src_compile() {
	cd ${S}
	for file in `find . -iname Makefile.in`
	do
		sed -e "s/xsim_\(.*\)@prefix@/xsim_\1\$(DESTDIR)\/@prefix@/g" ${file} >Makefile.in.tmp
		mv Makefile.in.tmp ${file}
	done

	./configure \
		--prefix=/usr/lib/xsim \
		--mandir=/usr/share/man \
		|| die

	for file in `find . -iname Makefile`
	do
		echo CFLAGS=${CFLAGS} > Makefile.tmp
		echo CXXFLAGS=${CXXFLAGS} -Wno-deprecated >> Makefile.tmp
		sed -e "s/CFLAGS          =/CFLAGS+=/"  -e "s/CXXFLAGS\t/CXXFLAGS+/" ${file} >> Makefile.tmp
		mv Makefile.tmp ${file}
	done

	make || die
}

src_install() {
	make DESTDIR=${D} install || die
	make DESTDIR=${D} install-data || die
	dodir /usr/bin
	dosym /usr/lib/xsim/bin/xsim /usr/bin/xsim
	# install docs
	dodoc ChangeLog COPYING INSTALL README* TODO
}