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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Feb 10 10:12:23 2015 UTC (5 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #539214

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 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.6.ebuild,v 1.2 2015/02/07 13:30:33 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils fdo-mime python-single-r1
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 sys-libs/zlib
26 python? ( ${PYTHON_DEPS} )
27 spell? ( app-text/enchant )"
28 DEPEND="${RDEPEND}
29 >=dev-libs/glib-2.16:2
30 dev-libs/libxml2:2
31 virtual/pkgconfig
32 x11-libs/pango
33 nls? (
34 sys-devel/gettext
35 dev-util/intltool
36 )"
37
38 S=${WORKDIR}/${MY_P}
39
40 # there actually is just some broken manpage checkup -> not bother
41 RESTRICT="test"
42
43 pkg_setup() {
44 use python && python-single-r1_pkg_setup
45 }
46
47 # Never eautoreconf this package as gettext breaks completely (no translations
48 # even if it compiles afterwards)!
49
50 src_configure() {
51 econf \
52 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
53 --disable-dependency-tracking \
54 --disable-update-databases \
55 --disable-xml-catalog-update \
56 $(use_enable nls) \
57 $(use_enable spell spell-check) \
58 $(use_enable python)
59 }
60
61 src_install() {
62 default
63 find "${ED}" -name '*.la' -exec rm -f {} +
64 }
65
66 pkg_postinst() {
67 fdo-mime_desktop_database_update
68 fdo-mime_mime_database_update
69
70 einfo "Adding XML catalog entries..."
71 /usr/bin/xmlcatalog --noout \
72 --add 'public' 'Bluefish/DTD/Bflang' 'bflang.dtd' \
73 --add 'system' 'http://bluefish.openoffice.nl/DTD/bflang.dtd' 'bflang.dtd' \
74 --add 'rewriteURI' 'http://bluefish.openoffice.nl/DTD' '/usr/share/xml/bluefish-unstable' \
75 /etc/xml/catalog \
76 || ewarn "Failed to add XML catalog entries."
77 }
78
79 pkg_postrm() {
80 fdo-mime_desktop_database_update
81 fdo-mime_mime_database_update
82 einfo "Removing XML catalog entries..."
83 /usr/bin/xmlcatalog --noout \
84 --del 'Bluefish/DTD/Bflang' \
85 --del 'http://bluefish.openoffice.nl/DTD/bflang.dtd' \
86 --del 'http://bluefish.openoffice.nl/DTD' \
87 /etc/xml/catalog \
88 || ewarn "Failed to remove XML catalog entries."
89 }

  ViewVC Help
Powered by ViewVC 1.1.20