/[gentoo-x86]/app-editors/bluefish/bluefish-2.2.1.ebuild
Gentoo

Contents of /app-editors/bluefish/bluefish-2.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Mar 29 13:19:27 2012 UTC (2 years, 4 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump to the latest bugfix release. Drop older as the stablereq is hang on gnome team.

(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/bluefish/bluefish-2.2.1.ebuild,v 1.3 2012/03/05 14:17:00 scarabeus Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? 2"
8
9 inherit autotools eutils fdo-mime python
10
11 MY_P=${P/_/-}
12
13 DESCRIPTION="A GTK HTML editor for the experienced web designer or programmer."
14 SRC_URI="http://www.bennewitz.com/bluefish/stable/source/${MY_P}.tar.bz2"
15 HOMEPAGE="http://bluefish.openoffice.nl/"
16
17 LICENSE="GPL-2"
18 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
19 SLOT="0"
20 IUSE="nls python spell"
21
22 RDEPEND="
23 x11-libs/gtk+:3
24 gnome-extra/gucharmap:2.90
25 spell? ( app-text/enchant )"
26 DEPEND="${RDEPEND}
27 >=dev-libs/glib-2.16:2
28 dev-libs/libxml2:2
29 dev-util/pkgconfig
30 x11-libs/pango
31 nls? (
32 sys-devel/gettext
33 dev-util/intltool
34 )"
35
36 S=${WORKDIR}/${MY_P}
37
38 # there actually is just some broken manpage checkup -> not bother
39 RESTRICT="test"
40
41 pkg_setup() {
42 if use python ; then
43 python_set_active_version 2
44 python_pkg_setup
45 fi
46 }
47
48 # Never eautoreconf this package as gettext breaks completely (no translations
49 # even if it compiles afterwards)!
50
51 src_configure() {
52 econf \
53 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
54 --disable-dependency-tracking \
55 --disable-update-databases \
56 --disable-xml-catalog-update \
57 $(use_enable nls) \
58 $(use_enable spell spell-check) \
59 $(use_enable python)
60 }
61
62 src_install() {
63 default
64 find "${ED}" -name '*.la' -exec rm -f {} +
65 }
66
67 pkg_postinst() {
68 fdo-mime_desktop_database_update
69 fdo-mime_mime_database_update
70
71 einfo "Adding XML catalog entries..."
72 /usr/bin/xmlcatalog --noout \
73 --add 'public' 'Bluefish/DTD/Bflang' 'bflang.dtd' \
74 --add 'system' 'http://bluefish.openoffice.nl/DTD/bflang.dtd' 'bflang.dtd' \
75 --add 'rewriteURI' 'http://bluefish.openoffice.nl/DTD' '/usr/share/xml/bluefish-unstable' \
76 /etc/xml/catalog \
77 || ewarn "Failed to add XML catalog entries."
78 }
79
80 pkg_postrm() {
81 fdo-mime_desktop_database_update
82 fdo-mime_mime_database_update
83 einfo "Removing XML catalog entries..."
84 /usr/bin/xmlcatalog --noout \
85 --del 'Bluefish/DTD/Bflang' \
86 --del 'http://bluefish.openoffice.nl/DTD/bflang.dtd' \
87 --del 'http://bluefish.openoffice.nl/DTD' \
88 /etc/xml/catalog \
89 || ewarn "Failed to remove XML catalog entries."
90 }

  ViewVC Help
Powered by ViewVC 1.1.20