From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 79D381396D9 for ; Mon, 13 Nov 2017 19:51:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B93A5E1127; Mon, 13 Nov 2017 19:51:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A191E1127 for ; Mon, 13 Nov 2017 19:51:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 92A7933BF0F for ; Mon, 13 Nov 2017 19:51:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5675D94BF for ; Mon, 13 Nov 2017 19:51:02 +0000 (UTC) From: "Jonas Stein" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jonas Stein" Message-ID: <1510602650.1623f7367ad0ad21ee210a11ddc4aa06cd375fce.jstein@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/scite/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/scite/Manifest app-editors/scite/scite-4.0.2.ebuild X-VCS-Directories: app-editors/scite/ X-VCS-Committer: jstein X-VCS-Committer-Name: Jonas Stein X-VCS-Revision: 1623f7367ad0ad21ee210a11ddc4aa06cd375fce X-VCS-Branch: master Date: Mon, 13 Nov 2017 19:51:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2f909472-0516-4f8c-b554-ad088a20663e X-Archives-Hash: 10a02cc3d41628e93cb25be9a4bc4752 commit: 1623f7367ad0ad21ee210a11ddc4aa06cd375fce Author: Jonas Stein gentoo org> AuthorDate: Mon Nov 13 00:28:07 2017 +0000 Commit: Jonas Stein gentoo org> CommitDate: Mon Nov 13 19:50:50 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1623f736 app-editors/scite: Version bump to 4.0.2 Version bump to 4.0.2 bump to EAPI=6 add missing xdg-utils eclass Package-Manager: Portage-2.3.13, Repoman-2.3.4 app-editors/scite/Manifest | 1 + app-editors/scite/scite-4.0.2.ebuild | 114 +++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/app-editors/scite/Manifest b/app-editors/scite/Manifest index 2a42302ccb3..fc55861af01 100644 --- a/app-editors/scite/Manifest +++ b/app-editors/scite/Manifest @@ -2,3 +2,4 @@ DIST scite355.tgz 2302137 SHA256 20515597ac986f1727c97bda2c27d88487ddb79cfe330b0 DIST scite362.tgz 2368491 SHA256 6530d0d86c72485b815663e3b2c2987d59779340a71632ed8bb97a43530737a3 SHA512 cb9618e962a16db7484e16a494b3da39f210250277e9772b112af5e16649b38f27ead0ec61664b1211c9263880cb7f3c34b5b32d94a4e70087fb1503805740c1 WHIRLPOOL 52a31f0e1518a9d8f6107aa22eead7da89e1d1ea6523a2aae57fbd7a3a8ecbd192c124c3d2550acea6383457763d6e501b14791ec6490a54379c5d13356e42da DIST scite364.tgz 2386959 SHA256 6a27a1062b838e0fe914fb045f265935e5d39e34d69ae894b55f971437192baa SHA512 eaba353edac23902a8f446fb8877f3e5dd43221e5289bc38941d76068a3f7c87602e9eb5828e6caafec56657d05b5268aad2a1bb36356a14154de3c22602c76d WHIRLPOOL f1b4c64eb4a5c6d6e73ffb3f457a5b5ddf8d31cf5f5778b204c05a093bcfb8e78e7a8cab634cf369ce29f200c11b933492f01c30afb268f581d465ed31157c88 DIST scite365.tgz 2391190 SHA256 dde62ebebbd4c36afd81ab0e745ff04839f4cfc911496f2d0463aade1374b9d1 SHA512 193dcb1f8787a7c7d520ce62462e5c95e7b6bcaf79f4ab23f9885474fb0444dbc5a69a0d45eafc592e5fff2a2e746a9aba599799e847e3c74d3436eed26580a9 WHIRLPOOL e79a2f05444c16f40f6c84fd252d3b71247a48f6af27f912d3f51de99b968c93ec505bc903aa4df407d1ff503f3ce35052004c46e3f7fe8502d0d0ef4939610e +DIST scite402.tgz 2424648 SHA256 1f9bb8eccbaed77c110c30c0e6dbaac04b3f62b751a930192b133a7b6f0f29fb SHA512 97898cbb8675d013dd91828792de1c71e3f013b21c59c5112ddc00e7ee35c2ba8cc29e2c3256b91171e052145a25cddfd0034505e3c185999c734504bb702283 WHIRLPOOL 0de24e65f718c49d183ee44520b7b46249dfb41eaa6d2b35e79b6b31e53c0f308c919c99f5c8b704a8d9d606e023306bcab4b3acd8339fd29e57d1a467bdc68f diff --git a/app-editors/scite/scite-4.0.2.ebuild b/app-editors/scite/scite-4.0.2.ebuild new file mode 100644 index 00000000000..e8a034593e4 --- /dev/null +++ b/app-editors/scite/scite-4.0.2.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs eutils flag-o-matic gnome2-utils xdg-utils + +MY_PV=${PV//./} +DESCRIPTION="A very powerful, highly configurable, small editor with syntax +coloring." +HOMEPAGE="http://www.scintilla.org/SciTE.html" +SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz" + +LICENSE="HPND lua? ( MIT )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" +IUSE="lua" + +RDEPEND="dev-libs/glib:= + x11-libs/cairo + x11-libs/gtk+:3= + x11-libs/gdk-pixbuf + x11-libs/pango + lua? ( >=dev-lang/lua-5:= )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${PN}/gtk" + +src_prepare() { + sed -i "${WORKDIR}/scintilla/gtk/makefile" \ + -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ + -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ + -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ + -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \ + -e "s#-Os##" \ + || die "error patching /scintilla/gtk/makefile" + + sed -i "${WORKDIR}/scite/gtk/makefile" \ + -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \ + || die "error patching /scite/gtk/makefile" + + # add the ebuild suffix as shell type for working with ebuilds + sed -i "${WORKDIR}/scite/src/perl.properties" \ + -e "s#\*.sh;\*.bsh;#\*.ebuild;\*.sh;\*.bsh;#" \ + || die "error patching /scite/src/perl.prperties" + + # repair and enhance the .desktop file + sed -i "${WORKDIR}/scite/gtk/SciTE.desktop" \ + -e "s/^Encoding/#Encoding/" \ + -e "s#text/plain#text/\*;application/xhtml+xml#" \ + -e "s#^Categories=\(.*\)#Categories=Development;#" \ + || die "error patching /scite/gtk/SciTe.desktop" + + sed -i "${S}/makefile" \ + -e 's#usr/local#usr#g' \ + -e 's#/gnome/apps/Applications#/applications#' \ + -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ + -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ + -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ + -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \ + -e 's#${D}##' \ + -e 's#-g root#-g 0#' \ + -e "s#-Os##" \ + || die "error patching gtk/makefile" + + # it seems that pwd here is ${S}, but user patches are relative to ${workdir} + # Bug #576162 + + cd "${WORKDIR}" + eapply_user +} + +src_compile() { + # prepare make options + emake_pars="GTK3=1" + if ! use lua; then + emake_pars+=" NO_LUA=1" + fi; + + emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ + LDFLAGS="$(raw-ldflags)" AR="$(tc-getAR)" \ + -C "${WORKDIR}/scintilla/gtk" $emake_pars + emake $emake_pars +} + +src_install() { + dodir /usr/bin + dodir /usr/share/{pixmaps,applications} + + emake DESTDIR="${ED}" install + + # we have to keep this because otherwise it'll break upgrading + mv "${ED}/usr/bin/SciTE" "${ED}/usr/bin/scite" || die + dosym "scite" "/usr/bin/SciTE" + + doman ../doc/scite.1 + dodoc ../README +} + +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 +}