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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jul 20 08:39:44 2015 UTC (4 years, 11 months ago) by amynka
Branch: MAIN
CVS Tags: HEAD
Version bump bug #555414 also solving bug #469480 and bug #469482. Thanks Nick Andrade for ebuild.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 34E69781)

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.3 2015/02/10 10:12:23 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="gucharmap nls python spell"
21
22 RDEPEND="
23 x11-libs/gtk+:3
24 sys-libs/zlib
25 gucharmap? ( gnome-extra/gucharmap:* )
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_prepare() {
51 sed -i 's:gzip -n $< -c:gzip -n -c $<:' data/bflib/Makefile.* || die "Cannot fix makefile"
52 }
53
54 src_configure() {
55 econf \
56 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
57 --disable-dependency-tracking \
58 --disable-update-databases \
59 --disable-xml-catalog-update \
60 $(use_enable nls) \
61 $(use_enable spell spell-check) \
62 $(use_enable python)
63 }
64
65 src_install() {
66 default
67 find "${ED}" -name '*.la' -exec rm -f {} +
68 }
69
70 pkg_postinst() {
71 fdo-mime_desktop_database_update
72 fdo-mime_mime_database_update
73
74 einfo "Adding XML catalog entries..."
75 /usr/bin/xmlcatalog --noout \
76 --add 'public' 'Bluefish/DTD/Bflang' 'bflang.dtd' \
77 --add 'system' 'http://bluefish.openoffice.nl/DTD/bflang.dtd' 'bflang.dtd' \
78 --add 'rewriteURI' 'http://bluefish.openoffice.nl/DTD' '/usr/share/xml/bluefish-unstable' \
79 /etc/xml/catalog \
80 || ewarn "Failed to add XML catalog entries."
81 }
82
83 pkg_postrm() {
84 fdo-mime_desktop_database_update
85 fdo-mime_mime_database_update
86 einfo "Removing XML catalog entries..."
87 /usr/bin/xmlcatalog --noout \
88 --del 'Bluefish/DTD/Bflang' \
89 --del 'http://bluefish.openoffice.nl/DTD/bflang.dtd' \
90 --del 'http://bluefish.openoffice.nl/DTD' \
91 /etc/xml/catalog \
92 || ewarn "Failed to remove XML catalog entries."
93 }

  ViewVC Help
Powered by ViewVC 1.1.20