From: "Jonas Stein" <jstein@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/scite/
Date: Thu, 16 Nov 2017 22:40:58 +0000 (UTC) [thread overview]
Message-ID: <1510870220.0d0a3c4df07778110309e721003fb90de4398297.jstein@gentoo> (raw)
commit: 0d0a3c4df07778110309e721003fb90de4398297
Author: Chris Mayo <aklhfex <AT> gmail <DOT> com>
AuthorDate: Thu Nov 16 19:27:12 2017 +0000
Commit: Jonas Stein <jstein <AT> gentoo <DOT> org>
CommitDate: Thu Nov 16 22:10:20 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d0a3c4d
app-editors/scite: Tidy ebuild
- eutils.eclass not needed
- one sed not two for gtk/makefile
- consistent sed paths and error messages
- Encoding now removed from desktop file
- ensure variable declared in src_compile is local
- dodir's in src_install not needed
Closes: https://bugs.gentoo.org/637518
Package-Manager: Portage-2.3.13, Repoman-2.3.3
app-editors/scite/scite-4.0.2.ebuild | 43 +++++++++++++++---------------------
1 file changed, 18 insertions(+), 25 deletions(-)
diff --git a/app-editors/scite/scite-4.0.2.ebuild b/app-editors/scite/scite-4.0.2.ebuild
index e8a034593e4..0134016bc35 100644
--- a/app-editors/scite/scite-4.0.2.ebuild
+++ b/app-editors/scite/scite-4.0.2.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit toolchain-funcs eutils flag-o-matic gnome2-utils xdg-utils
+inherit toolchain-funcs flag-o-matic gnome2-utils xdg-utils
MY_PV=${PV//./}
DESCRIPTION="A very powerful, highly configurable, small editor with syntax
@@ -35,25 +35,10 @@ src_prepare() {
-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"
+ || die "error patching scintilla/gtk/makefile"
sed -i "${S}/makefile" \
+ -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \
-e 's#usr/local#usr#g' \
-e 's#/gnome/apps/Applications#/applications#' \
-e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
@@ -63,7 +48,18 @@ src_prepare() {
-e 's#${D}##' \
-e 's#-g root#-g 0#' \
-e "s#-Os##" \
- || die "error patching gtk/makefile"
+ || die "error patching scite/gtk/makefile"
+
+ # repair and enhance the .desktop file
+ sed -i "${S}/SciTE.desktop" \
+ -e "s#text/plain#text/\*;application/xhtml+xml#" \
+ -e "s#^Categories=\(.*\)#Categories=Development;#" \
+ || die "error patching scite/gtk/SciTe.desktop"
+
+ # 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.properties"
# it seems that pwd here is ${S}, but user patches are relative to ${workdir}
# Bug #576162
@@ -74,10 +70,10 @@ src_prepare() {
src_compile() {
# prepare make options
- emake_pars="GTK3=1"
+ local emake_pars="GTK3=1"
if ! use lua; then
emake_pars+=" NO_LUA=1"
- fi;
+ fi
emake CC="$(tc-getCC)" LD="$(tc-getLD)" \
LDFLAGS="$(raw-ldflags)" AR="$(tc-getAR)" \
@@ -86,14 +82,11 @@ src_compile() {
}
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"
+ dosym scite /usr/bin/SciTE
doman ../doc/scite.1
dodoc ../README
next reply other threads:[~2017-11-16 22:41 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 22:40 Jonas Stein [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-29 12:30 [gentoo-commits] repo/gentoo:master commit in: app-editors/scite/ Joonas Niilola
2023-05-27 10:47 Sam James
2023-05-25 8:04 Arthur Zamarin
2023-05-25 8:02 Arthur Zamarin
2023-04-23 8:02 Sam James
2023-04-23 8:02 Sam James
2023-04-23 5:02 Sam James
2022-11-18 17:44 Arthur Zamarin
2022-11-14 7:44 Joonas Niilola
2022-11-14 7:44 Joonas Niilola
2022-09-12 13:40 Joonas Niilola
2022-09-12 13:40 Joonas Niilola
2022-09-01 17:50 Matt Turner
2022-08-29 7:22 Joonas Niilola
2022-08-29 7:22 Joonas Niilola
2022-07-23 12:50 Joonas Niilola
2022-07-23 12:50 Joonas Niilola
2022-05-17 5:34 Sam James
2021-12-20 11:06 Joonas Niilola
2021-12-20 11:06 Joonas Niilola
2021-12-20 11:06 Joonas Niilola
2021-12-11 19:10 Arthur Zamarin
2021-12-11 14:42 Jakov Smolić
2021-12-11 12:45 Jakov Smolić
2021-10-29 13:31 Yixun Lan
2021-10-04 12:33 Joonas Niilola
2021-09-21 16:35 Sam James
2021-09-19 22:12 Sam James
2021-09-19 22:12 Sam James
2021-09-10 7:22 Joonas Niilola
2021-09-10 7:22 Joonas Niilola
2021-09-10 7:22 Joonas Niilola
2020-12-03 22:58 Marek Szuba
2020-08-21 7:15 Joonas Niilola
2020-08-21 7:15 Joonas Niilola
2020-08-21 7:15 Joonas Niilola
2020-04-28 7:44 Joonas Niilola
2020-04-21 8:18 Joonas Niilola
2020-02-03 15:24 Agostino Sarubbo
2020-02-03 12:38 Agostino Sarubbo
2020-02-03 12:30 Agostino Sarubbo
2019-11-09 8:00 Joonas Niilola
2019-10-27 9:12 Michał Górny
2019-10-27 9:12 Michał Górny
2019-08-03 11:38 Jonas Stein
2019-06-04 20:54 Agostino Sarubbo
2019-06-04 14:45 Thomas Deutschmann
2019-03-20 18:26 Aaron Bauman
2019-02-15 15:04 Agostino Sarubbo
2018-05-20 0:16 Aaron Bauman
2018-04-16 21:26 Sergei Trofimovich
2018-03-31 21:46 Aaron Bauman
2018-02-11 10:01 Michał Górny
2017-11-18 1:26 Jonas Stein
2017-11-17 0:11 Jonas Stein
2017-11-13 19:51 Jonas Stein
2017-08-23 16:07 Michał Górny
2017-01-29 14:38 Fabian Groffen
2016-07-04 0:05 Göktürk Yüksek
2016-05-13 16:04 Ian Delaney
2016-05-05 8:06 Ian Delaney
2016-05-05 8:06 Ian Delaney
2016-05-03 10:55 Sam Jorna
2016-04-10 6:59 Ian Delaney
2015-12-28 15:06 Agostino Sarubbo
2015-09-25 14:11 Ian Delaney
2015-09-20 6:29 Ian Delaney
2015-09-19 12:32 Agostino Sarubbo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1510870220.0d0a3c4df07778110309e721003fb90de4398297.jstein@gentoo \
--to=jstein@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox