/[gentoo-x86]/www-client/xxxterm/xxxterm-1.1103.ebuild
Gentoo

Contents of /www-client/xxxterm/xxxterm-1.1103.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Apr 29 18:02:39 2012 UTC (2 years, 4 months ago) by ago
Branch: MAIN
Changes since 1.1: +3 -2 lines
Drop extra CFLAGS

(Portage version: 2.1.10.49/cvs/Linux i686)

1 rafaelmartins 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.2 # $Header: /var/cvsroot/gentoo-x86/www-client/xxxterm/xxxterm-1.1103.ebuild,v 1.1 2012/03/17 21:54:12 rafaelmartins Exp $
4 rafaelmartins 1.1
5     EAPI="4"
6    
7     GIT_ECLASS=
8     if [[ ${PV} = *9999* ]]; then
9     GIT_ECLASS=git-2
10     fi
11    
12     inherit eutils fdo-mime toolchain-funcs ${GIT_ECLASS}
13    
14     DESCRIPTION="A minimalist web browser with sophisticated security features designed-in"
15     HOMEPAGE="http://opensource.conformal.com/wiki/xxxterm"
16    
17     MY_P="${PN}-${PV/0/.}"
18    
19     KEYWORDS=""
20     if [[ ${PV} = *9999* ]]; then
21     EGIT_REPO_URI="git://opensource.conformal.com/xxxterm.git
22     https://opensource.conformal.com/git/xxxterm.git"
23     EGIT_SOURCEDIR="${WORKDIR}/${MY_P}"
24     else
25     SRC_URI="http://opensource.conformal.com/snapshots/${PN}/${MY_P}.tgz"
26     KEYWORDS="~amd64 ~x86"
27     fi
28    
29     LICENSE="ISC"
30     SLOT="0"
31     IUSE=""
32    
33     DEPEND="x11-libs/gtk+:2
34     net-libs/webkit-gtk:2
35     net-libs/libsoup
36     net-libs/gnutls
37     dev-libs/libbsd"
38     RDEPEND="${DEPEND}"
39    
40     S="${WORKDIR}/${MY_P}/linux"
41    
42     src_prepare() {
43     sed -i \
44 ago 1.2 -e 's/-O2//' \
45     -e 's/-ggdb3//' \
46 rafaelmartins 1.1 Makefile || die 'sed Makefile failed.'
47     sed -i \
48     -e 's#https://www\.cyphertite\.com#http://www.gentoo.org/#' \
49     -e "s#/usr/local#/usr#" \
50     ../xxxterm.c || die 'sed ../xxxterm.c failed.'
51     sed -i \
52     "s#Icon=#Icon=/usr/share/${PN}/#" \
53     ../xxxterm.desktop || die 'sed ../xxxterm.desktop failed.'
54     }
55    
56     src_compile() {
57     CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDADD="${LDFLAGS}" emake
58     }
59    
60     src_install() {
61     emake \
62     DESTDIR="${D}" \
63     PREFIX=/usr install
64    
65     insinto "/usr/share/${PN}"
66     doins ../*.png ../style.css
67     insinto /usr/share/applications
68     doins ../xxxterm.desktop
69     insinto "/usr/share/doc/${PF}/examples"
70     doins ../xxxterm.conf ../playflash.sh ../favorites
71     doman ../xxxterm.1
72     }
73    
74     pkg_postinst() {
75     fdo-mime_desktop_database_update
76     fdo-mime_mime_database_update
77     }
78    
79     pkg_postrm() {
80     fdo-mime_desktop_database_update
81     fdo-mime_mime_database_update
82     }

  ViewVC Help
Powered by ViewVC 1.1.20