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

(-)qe-0.1.1.ebuild (-9 / +33 lines)
Lines 1-24 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
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: /var/cvsroot/gentoo-x86/app-editors/qe/qe-0.1.1.ebuild,v 1.11 2005/08/28 17:04:24 metalgod Exp $
3
# $Header:
4
5
inherit libtool eutils autotools
4
6
5
DESCRIPTION="PE2-like editor program under U*nix with Chinese support"
7
DESCRIPTION="PE2-like editor program under U*nix with Chinese support"
6
HOMEPAGE="http://www.cc.ncu.edu.tw/~center5/product/qe/ http://members.xoom.com/linux4tw/qe/"
8
HOMEPAGE="http://www.geocities.com/linux4tw/qe/ http://www.cc.ncu.edu.tw/~center5/product/qe/"
7
SRC_URI="ftp://freebsd.sinica.edu.tw/pub/statue/qe/${P}.tar.gz"
9
SRC_URI="mirror://debian/pool/main/q/qe/${P/-/_}.orig.tar.gz
10
	mirror://debian/pool/main/q/qe/${P/-/_}-4.diff.gz"
8
11
9
LICENSE="GPL-2"
12
LICENSE="GPL-2"
10
SLOT="0"
13
SLOT="0"
11
KEYWORDS="~amd64 ~ppc x86"
14
KEYWORDS="~amd64 ~ppc x86"
12
IUSE=""
15
IUSE=""
13
16
14
DEPEND="virtual/libc"
17
RDEPEND="sys-libs/ncurses"
18
DEPEND="${RDEPEND}
19
	dev-lang/perl
20
	virtual/libiconv"
21
22
src_unpack() {
23
	unpack ${A}
24
	cd "${S}"
25
	epatch "${WORKDIR}"/${P/-/_}-4.diff
26
	sed -i \
27
		-e '/AC_REQUIRE/d' \
28
		-e 's/CXXFLAGS="$CXXFLAGS -O2 -Wall \\${QE_CFLAGS}"/CXXFLAGS="-02 $CXXFLAGS -Wall -Wextra \${QE_CFLAGS}"/' \
29
		configure.in
30
	elibtoolize
31
	eautoreconf
32
}
15
33
16
src_compile() {
34
src_compile() {
17
	./configure --prefix=/usr || die
35
	econf --datadir=/etc/ || die "econf failed"
18
	make all || die
36
	emake || die "emake failed"
19
}
37
}
20
38
21
src_install() {
39
src_install() {
22
	make prefix=${D}/usr install || die
40
	emake	pkgdatadir="${D}/etc/${PN}" \
23
	dodoc AUTHORS ChangeLog README README.big5
41
		DESTDIR="${D}" \
42
		 install || die "emake install failed"
43
	for DOC in html-en/readme.txt AUTHORS ChangeLog README.big5; do
44
		iconv -f BIG5 -t UTF8 ${DOC} > ${DOC}.UTF8 || die "iconv ${DOC} failed"
45
		newdoc ${DOC}.UTF8 ${DOC##*/} || die "newdoc ${DOC}.UTF -> ${DOC} failed"
46
	done
47
24
}
48
}

Return to bug 221143