Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/bluefish/, app-editors/bluefish/files/
Date: Thu, 28 Jul 2016 12:55:50
Message-Id: 1469710535.f50a0aea1d1082a88a2e8c5a1ad5bc9308a15911.polynomial-c@gentoo
1 commit: f50a0aea1d1082a88a2e8c5a1ad5bc9308a15911
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 28 12:53:21 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 28 12:55:35 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f50a0aea
7
8 app-editors/bluefish: Bump to version 2.2.9
9
10 Package-Manager: portage-2.3.0
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-editors/bluefish/Manifest | 1 +
14 app-editors/bluefish/bluefish-2.2.9.ebuild | 107 +++++++++++++++++++++
15 .../files/bluefish-2.2.9-charmap_configure.patch | 29 ++++++
16 3 files changed, 137 insertions(+)
17
18 diff --git a/app-editors/bluefish/Manifest b/app-editors/bluefish/Manifest
19 index 93eed13..dc4d7b1 100644
20 --- a/app-editors/bluefish/Manifest
21 +++ b/app-editors/bluefish/Manifest
22 @@ -1,3 +1,4 @@
23 DIST bluefish-2.2.6.tar.bz2 3793018 SHA256 54c2892c317eb2287c9fb0a3e29c3f19bef51d9ab0353bfb158e52a1cdae4216 SHA512 39dee296ec6bbe1a946f9fb1c54e7143363da4bb6ce52aee14c9bef906d2eb82e5e58f78680810357c0bfcb11c21f982756a9199fec2f454c2816005a4d9d83e WHIRLPOOL b0847ea74fdc388e9ddccf1a23e8802379d149b85c5010ff9a64b3e061b0c1999e1f1a5872404b8bad2b0024fcdb09db964dae2177092d770f56aca50628d146
24 DIST bluefish-2.2.7.tar.bz2 3836580 SHA256 23534b73b929754e15b86d12904ca3ffc1b069da5dcd4f34a67e842fe9e858df SHA512 8b9eca746062d47d646805b02370eb9529d449d6a6a9f175353022d9df9060a9736430b6579cdd52717caab75661204e4c940c4a78fb8f6e29845e84a65395ce WHIRLPOOL 748c965da307807df6a7ebd2f430b5148bd6b8644f722d1ba5bfe70853a884eae951c35cc0c9f4a82e56b47b098fa7bd364623cc773920b08f1197852c720ee8
25 DIST bluefish-2.2.8.tar.bz2 4097769 SHA256 32578f955cee3f43e5b3a86e2588e6a679df94438b21dcbe38e3c82282745000 SHA512 0450909feb2370c1c84a214744f103bfe891086ba5f3ccc85060b4e134ee2161c3fde641720a3544a4d71c25f120a35925517cee4ffce6e2f07c778baa2cc5c1 WHIRLPOOL 0253e2176d68033c57db2ea1ec67c8e154722835652fe792e218a9430832ad40f67c360fc03f03e7317cda5d0fff7e83437cfd8543d58dbaf7b663ee4f68a77f
26 +DIST bluefish-2.2.9.tar.bz2 4082978 SHA256 5b717b563325bc6c2b6cb2700323c93eb08f914f204b322241d21744a079f7d0 SHA512 ef644b37907d308b908d508ad00069e48343cd240ca7703a20b4498eda73be1a97a6c07598f6e51d4fb1c0f2a380c86a274ccbbe046da01db6c4641e41e268ae WHIRLPOOL 4e03efbc1fef3b8064e042b8532f96cafdc95ba6350b86f2b7928b93ac11bde329a16822f71bb50912c8e27a75349e8768be89e14fa5186912a5f1a13eb4d14d
27
28 diff --git a/app-editors/bluefish/bluefish-2.2.9.ebuild b/app-editors/bluefish/bluefish-2.2.9.ebuild
29 new file mode 100644
30 index 0000000..0fa0a11
31 --- /dev/null
32 +++ b/app-editors/bluefish/bluefish-2.2.9.ebuild
33 @@ -0,0 +1,107 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +
40 +PYTHON_COMPAT=( python2_7 )
41 +
42 +inherit autotools eutils fdo-mime python-single-r1
43 +
44 +MY_P=${P/_/-}
45 +
46 +DESCRIPTION="A GTK HTML editor for the experienced web designer or programmer"
47 +SRC_URI="http://www.bennewitz.com/bluefish/stable/source/${MY_P}.tar.bz2"
48 +HOMEPAGE="http://bluefish.openoffice.nl/"
49 +
50 +LICENSE="GPL-2"
51 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
52 +SLOT="0"
53 +IUSE="+gtk3 gucharmap nls python spell"
54 +
55 +RDEPEND="
56 + gnome-extra/gucharmap:2.90
57 + sys-libs/zlib
58 + !gtk3? ( x11-libs/gtk+:2 )
59 + gtk3? (
60 + x11-libs/gtk+:3
61 + gucharmap? ( gnome-extra/gucharmap:2.90 )
62 + )
63 + python? ( ${PYTHON_DEPS} )
64 + spell? ( app-text/enchant )"
65 +DEPEND="${RDEPEND}
66 + dev-libs/libxml2:2
67 + >=dev-libs/glib-2.24:2
68 + virtual/pkgconfig
69 + x11-libs/pango
70 + nls? (
71 + sys-devel/gettext
72 + dev-util/intltool
73 + )"
74 +
75 +S="${WORKDIR}/${MY_P}"
76 +
77 +# there actually is just some broken manpage checkup -> not bother
78 +RESTRICT="test"
79 +
80 +pkg_setup() {
81 + if ! use gtk3 && use gucharmap ; then
82 + ewarn "gucharmap USE flag requires the gtk3 USE flag being enabled."
83 + ewarn "Disabling charmap plugin."
84 + fi
85 +
86 + use python && python-single-r1_pkg_setup
87 +}
88 +
89 +PATCHES=(
90 + "${FILESDIR}/${PN}-2.2.9-charmap_configure.patch"
91 +)
92 +
93 +# eautoreconf seems to no longer kill translation files.
94 +src_prepare() {
95 + default
96 + eautoreconf
97 + sed -i 's:gzip -n $< -c:gzip -n -c $<:' data/bflib/Makefile.* || die "Cannot fix makefile"
98 +}
99 +
100 +src_configure() {
101 + econf \
102 + --disable-dependency-tracking \
103 + --disable-update-databases \
104 + --disable-xml-catalog-update \
105 + $(use_with !gtk3 gtk2) \
106 + $(usex gtk3 "$(use_with gucharmap charmap)" '--without-charmap') \
107 + $(use_enable nls) \
108 + $(use_enable spell spell-check) \
109 + $(use_enable python)
110 +}
111 +
112 +src_install() {
113 + default
114 + prune_libtool_files
115 +}
116 +
117 +pkg_postinst() {
118 + fdo-mime_desktop_database_update
119 + fdo-mime_mime_database_update
120 +
121 + einfo "Adding XML catalog entries..."
122 + /usr/bin/xmlcatalog --noout \
123 + --add 'public' 'Bluefish/DTD/Bflang' 'bflang.dtd' \
124 + --add 'system' 'http://bluefish.openoffice.nl/DTD/bflang.dtd' 'bflang.dtd' \
125 + --add 'rewriteURI' 'http://bluefish.openoffice.nl/DTD' '/usr/share/xml/bluefish-unstable' \
126 + /etc/xml/catalog \
127 + || ewarn "Failed to add XML catalog entries."
128 +}
129 +
130 +pkg_postrm() {
131 + fdo-mime_desktop_database_update
132 + fdo-mime_mime_database_update
133 + einfo "Removing XML catalog entries..."
134 + /usr/bin/xmlcatalog --noout \
135 + --del 'Bluefish/DTD/Bflang' \
136 + --del 'http://bluefish.openoffice.nl/DTD/bflang.dtd' \
137 + --del 'http://bluefish.openoffice.nl/DTD' \
138 + /etc/xml/catalog \
139 + || ewarn "Failed to remove XML catalog entries."
140 +}
141
142 diff --git a/app-editors/bluefish/files/bluefish-2.2.9-charmap_configure.patch b/app-editors/bluefish/files/bluefish-2.2.9-charmap_configure.patch
143 new file mode 100644
144 index 0000000..0e97e38
145 --- /dev/null
146 +++ b/app-editors/bluefish/files/bluefish-2.2.9-charmap_configure.patch
147 @@ -0,0 +1,29 @@
148 +--- bluefish-2.2.9/configure.ac
149 ++++ bluefish-2.2.9/configure.ac
150 +@@ -504,7 +504,15 @@
151 + AC_MSG_RESULT([no])
152 + fi
153 +
154 ++AC_ARG_WITH(
155 ++ [charmap],
156 ++ AC_HELP_STRING(
157 ++ [--with-charmap],
158 ++ [Build the charmap plugin if gucharmap is available @<:@default=yes@:>@]
159 ++ )
160 ++)
161 +
162 ++if test "x$with_charmap" != "xno"; then
163 + # optionally build the charmap plugin if gucharmap is available
164 + AC_MSG_NOTICE([checking for optional libgucharmap development files])
165 + if test "x$with_gtk3" != "xno"; then
166 +@@ -544,6 +552,10 @@
167 + )]
168 + )
169 + fi
170 ++else
171 ++ build_charmap_plugin=no
172 ++ AC_MSG_WARN([Disabling the building of the charmap plugin.])
173 ++fi
174 + AM_CONDITIONAL([ENABLE_CHARMAP_PLUGIN], [test "x$build_charmap_plugin" = "xyes"])
175 +
176 + AC_SEARCH_LIBS([log10], [m])