1 |
Hello -alt people :-P |
2 |
Please add this abuild in prefix ^^ |
3 |
|
4 |
|
5 |
|
6 |
# Copyright 1999-2007 Gentoo Foundation |
7 |
# Distributed under the terms of the GNU General Public License v2 |
8 |
# $Header: /var/cvsroot/gentoo-x86/www-client/links/links-2.1_pre28- |
9 |
r1.ebuild,v 1.1 2007/04/28 01:50:58 vanquirius Exp $ |
10 |
|
11 |
EAPI="prefix" |
12 |
|
13 |
inherit eutils toolchain-funcs |
14 |
|
15 |
DESCRIPTION="links is a fast lightweight text and graphic web-browser" |
16 |
HOMEPAGE="http://links.twibright.com/" |
17 |
# To handle pre-version ... |
18 |
MY_P="${P/_/}" |
19 |
S="${WORKDIR}/${MY_P}" |
20 |
SRC_URI="http://links.twibright.com/download/${MY_P}.tar.bz2 |
21 |
mirror://gentoo/${PN}-2.1pre22-utf8.diff.bz2" |
22 |
|
23 |
LICENSE="GPL-2" |
24 |
SLOT="2" |
25 |
KEYWORDS="~x86-macos" |
26 |
IUSE="gpm javascript jpeg png ssl tiff unicode X" |
27 |
|
28 |
# Note: if X usegflag is enabled, links will be built in graphic |
29 |
# mode. libpng is required to compile links in graphic mode |
30 |
|
31 |
|
32 |
RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6c ) |
33 |
gpm? ( sys-libs/gpm ) |
34 |
png? ( >=media-libs/libpng-1.2.1 ) |
35 |
jpeg? ( >=media-libs/jpeg-6b ) |
36 |
tiff? ( >=media-libs/tiff-3.5.7 ) |
37 |
X? ( || ( x11-libs/libXext |
38 |
virtual/x11 ) |
39 |
>=media-libs/libpng-1.2.1 )" |
40 |
|
41 |
DEPEND="${RDEPEND} |
42 |
sys-devel/automake |
43 |
sys-devel/autoconf |
44 |
dev-util/pkgconfig |
45 |
javascript? ( >=sys-devel/flex-2.5.4a )" |
46 |
|
47 |
src_unpack (){ |
48 |
unpack ${A}; cd "${S}" |
49 |
|
50 |
epatch "${FILESDIR}"/configure-LANG.patch #131440 |
51 |
|
52 |
if use unicode ; then |
53 |
epatch "${WORKDIR}/${PN}-2.1pre22-utf8.diff" |
54 |
cd "${S}/intl" && ./gen-intl && cd .. || die "gen- |
55 |
intl failed" |
56 |
cd "${S}/intl" && ./synclang && cd .. || die |
57 |
"synclang failed" |
58 |
fi |
59 |
} |
60 |
|
61 |
src_compile (){ |
62 |
local myconf |
63 |
|
64 |
if use X; then |
65 |
myconf="${myconf} --enable-graphics" |
66 |
fi |
67 |
|
68 |
# Note: --enable-static breaks. |
69 |
|
70 |
# Note: ./configure only support 'gpm' features auto- |
71 |
detection, so |
72 |
# we use the autoconf trick |
73 |
use gpm || export ac_cv_lib_gpm_Gpm_Open="no" |
74 |
|
75 |
export LANG=C |
76 |
|
77 |
# hack to allow cross-compilation |
78 |
export CC="$(tc-getCC)" |
79 |
|
80 |
econf \ |
81 |
$(use_with X x) \ |
82 |
$(use_with png libpng) \ |
83 |
$(use_with jpeg libjpeg) \ |
84 |
$(use_with tiff libtiff) \\ |
85 |
$(use_with ssl) \ |
86 |
$(use_enable javascript) \ |
87 |
${myconf} || die "configure failed" |
88 |
emake || die "make failed" |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
einstall || die |
93 |
|
94 |
# Only install links icon if X driver was compiled in ... |
95 |
use X && doicon graphics/links.xpm |
96 |
|
97 |
dodoc AUTHORS BUGS ChangeLog NEWS README SITES TODO |
98 |
dohtml doc/links_cal/* |
99 |
|
100 |
# Install a compatibility symlink links2: |
101 |
dosym links /usr/bin/links2 |
102 |
} |
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
-- |
110 |
Emanuele Gentili |
111 |
www.emanuele-gentili.com |
112 |
GnuPG / PGP Key Available on http://pgp.mit.edu |
113 |
KeyID: 0xF11AFD6A |