| 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 |
}
|