blob: c66a3d538e6db68d25eae7dec3fb3462b46fc236 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/xxxterm/xxxterm-1.518.ebuild,v 1.1 2011/09/19 00:26:07 rafaelmartins Exp $
EAPI="4"
GIT_ECLASS=
if [[ ${PV} = *9999* ]]; then
GIT_ECLASS=git-2
fi
inherit eutils fdo-mime toolchain-funcs ${GIT_ECLASS}
DESCRIPTION="A minimalist web browser with sophisticated security features designed-in"
HOMEPAGE="http://opensource.conformal.com/wiki/xxxterm"
KEYWORDS=""
if [[ ${PV} = *9999* ]]; then
EGIT_REPO_URI="git://opensource.conformal.com/xxxterm.git
https://opensource.conformal.com/git/xxxterm.git"
EGIT_SOURCEDIR="${WORKDIR}/${P}"
else
SRC_URI="http://opensource.conformal.com/snapshots/${PN}/${P}.tgz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="ISC"
SLOT="0"
IUSE=""
DEPEND="x11-libs/gtk+
net-libs/webkit-gtk
net-libs/libsoup
net-libs/gnutls
dev-libs/libbsd"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/linux"
src_prepare() {
sed -i \
's/-Wall -ggdb //' \
Makefile || die 'sed Makefile failed.'
sed -i \
-e 's#https://www\.cyphertite\.com#http://www.gentoo.org/#' \
-e "s#/usr/local#/usr#" \
../xxxterm.c || die 'sed ../xxxterm.c failed.'
sed -i \
"s#Icon=#Icon=/usr/share/${PN}/#" \
../xxxterm.desktop || die 'sed ../xxxterm.desktop failed.'
}
src_compile() {
CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDADD="${LDFLAGS}" emake
}
src_install() {
emake \
DESTDIR="${D}" \
PREFIX=/usr install
insinto "/usr/share/${PN}"
doins ../*.png ../style.css
insinto /usr/share/applications
doins ../xxxterm.desktop
insinto "/usr/share/doc/${PF}/examples"
doins ../xxxterm.conf ../playflash.sh ../favorites
doman ../xxxterm.1
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|