commit:     6ef04704fb7494b6c9224c45b42729c2ded4b05b
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 06:33:43 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Apr 29 06:33:43 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef04704

dev-util/geany: Bump to version 1.35

Use xdg eclass for having a clean environment.

Closes: https://bugs.gentoo.org/588570
Closes: https://bugs.gentoo.org/636910
Package-Manager: Portage-2.3.65, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 dev-util/geany/Manifest          |  1 +
 dev-util/geany/geany-1.35.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)

diff --git a/dev-util/geany/Manifest b/dev-util/geany/Manifest
index 0b2d3f2e631..f98cf333977 100644
--- a/dev-util/geany/Manifest
+++ b/dev-util/geany/Manifest
@@ -1,2 +1,3 @@
 DIST geany-1.30.1.tar.bz2 4352154 BLAKE2B 
6efceb21e07aba3b0698196543746e926d6a73ef5d5f560467eee18a7b9ade4ce0ce37808176922b3399ea8a72b2f281af313a9f57aa325e1a9cb964f0f1c34e
 SHA512 
55fb446b0c517ccee4d2f3023334b96a336788422a4dc41207a4f290c5d4b88df1eefa4b7f6fddf0567224f890ae7bea396306a935512f17e01682034f7200e3
 DIST geany-1.34.1.tar.bz2 4474211 BLAKE2B 
25c9b3f752b0b19582120ea342d8029f811040ef433adb065aec028f0bcc0909ea1b0005445bae70a53cbb2b1d3bfe0c2dd9d9c25c5e3f89bcdedebc0a392301
 SHA512 
3e075b23b22682324e4a56046d238d9d0087d095a6157b98c342fbe40a2bfa7118f72cfe1f414d110fff1411e4cc9c33fff800e0a2e32f9f0e5fd7b6fb560c9a
+DIST geany-1.35.tar.bz2 4593705 BLAKE2B 
1d411da04a82987abccb33385d3b50025078b68dc2cc4accfb7822000a786b97f613a35864fde2389d0525b9547972d0e56699b75aae40686f0ad7e6e2beb4a6
 SHA512 
9ae2f168b1b5e9fa9029a32f5d1e9b591e50ea4e79041760524a4389572400c6f8f56f1fd6973299f152f9fd653cf3d52ca50136f0bbdbc15d3395bcf7388ccf

diff --git a/dev-util/geany/geany-1.35.ebuild b/dev-util/geany/geany-1.35.ebuild
new file mode 100644
index 00000000000..79034d53feb
--- /dev/null
+++ b/dev-util/geany/geany-1.35.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# eutils required for strip-linguas
+inherit eutils xdg
+
+LANGS="ar ast be bg ca cs de el en_GB es et eu fa fi fr gl he hi hu id it ja 
kk ko lb lt mn nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN ZH_TW"
+NOSHORTLANGS="en_GB zh_CN zh_TW"
+
+DESCRIPTION="GTK+ based fast and lightweight IDE"
+HOMEPAGE="https://www.geany.org";
+if [[ "${PV}" = 9999* ]] ; then
+       inherit autotools git-r3
+       EGIT_REPO_URI="https://github.com/geany/geany.git";
+else
+       [[ "${PV}" == *_pre* ]] && inherit autotools
+       SRC_URI="https://download.geany.org/${P}.tar.bz2";
+       KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd 
~amd64-linux ~x86-linux"
+fi
+LICENSE="GPL-2+ HPND"
+SLOT="0"
+
+IUSE="+gtk3 +vte"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+       !gtk3? (
+               >=x11-libs/gtk+-2.24:2
+               vte? ( x11-libs/vte:0 )
+       )
+       gtk3? (
+               >=x11-libs/gtk+-3.0:3
+               vte? ( x11-libs/vte:2.91 )
+       )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       dev-util/intltool
+       sys-devel/gettext"
+
+pkg_setup() {
+       strip-linguas ${LANGS}
+}
+
+src_prepare() {
+       xdg_src_prepare #588570
+
+       # Syntax highlighting for Portage
+       sed -i -e "s:*.sh;:*.sh;*.ebuild;*.eclass;:" \
+               data/filetype_extensions.conf || die
+
+       if [[ ${PV} = *_pre* ]] || [[ ${PV} = 9999* ]] ; then
+               eautoreconf
+       fi
+}
+
+src_configure() {
+       local myeconfargs=(
+               --disable-html-docs
+               --disable-dependency-tracking
+               $(use_enable gtk3)
+               $(use_enable vte)
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die
+}
+
+pkg_preinst() {
+       xdg_pkg_preinst
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+}
+
+pkg_postrm() {
+       xdg_pkg_postrm
+}

Reply via email to