diff options
-rw-r--r-- | dev-util/geany/Manifest | 1 | ||||
-rw-r--r-- | dev-util/geany/geany-1.34.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-util/geany/Manifest b/dev-util/geany/Manifest index 9bb8e772a7c2..f59e751e95e1 100644 --- a/dev-util/geany/Manifest +++ b/dev-util/geany/Manifest @@ -1,3 +1,4 @@ DIST geany-1.30.1.tar.bz2 4352154 BLAKE2B 6efceb21e07aba3b0698196543746e926d6a73ef5d5f560467eee18a7b9ade4ce0ce37808176922b3399ea8a72b2f281af313a9f57aa325e1a9cb964f0f1c34e SHA512 55fb446b0c517ccee4d2f3023334b96a336788422a4dc41207a4f290c5d4b88df1eefa4b7f6fddf0567224f890ae7bea396306a935512f17e01682034f7200e3 DIST geany-1.32.tar.bz2 4341296 BLAKE2B c12b5608929d308cd9ff66c04a395a48d7ae05e773f201ebce64b883a8b5da73d6e84b1799cfea35ae2c12b02177cc0d43328924daaf8f485a83305d0d8e763a SHA512 a5ec73f690368d735e20ba90db90ab9a10e504545374a0d82c82af1f2df2f1382edb966e442257a271602b9322e3229af6a07f9c883d5d2d32236dd8f7791b5d DIST geany-1.33.tar.bz2 4106409 BLAKE2B f0f16053eb1894ea98c8e79cd1cc5cb12adde4755358db42afe7c50a940168eeb6d7c5b7778765f28c6f6b029b5e17ac8433580e30c456b1b56fbea07ac16c6a SHA512 7fd53bd61cfe2dc05af69b5739ba2841cada822ea6dd76c6b2eb2707e69210f47cf19308842e3a989772c18a7e4386bf7a2b053085063605d196e8e630ab2b33 +DIST geany-1.34.tar.bz2 4474601 BLAKE2B 92a2b8343512317ad90cd10bd58b2aca77d7f58dff3548cfdbdab121343b67dcaa7a9d5b57cafd196d599d8bb6a121fa5e49d65a69fa7fd87fe7703be6b8d5fc SHA512 ef506880fbba9acbd2003b207c9897e115d398e716631bc1e164e3455aa9172f34b9955c627fb2f2dd3a3cba0926cce0a774d641517bc94b700d866be00db1a7 diff --git a/dev-util/geany/geany-1.34.ebuild b/dev-util/geany/geany-1.34.ebuild new file mode 100644 index 000000000000..f07d539b7273 --- /dev/null +++ b/dev-util/geany/geany-1.34.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit gnome2-utils xdg-utils + +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 + 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() { + default + + # 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 + --docdir="${EPREFIX}/usr/share/doc/${PF}" + $(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() { gnome2_icon_savelist; } + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} |