Gentoo Archives: gentoo-commits

From: "Krzysztof Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/scite: scite-3.0.1.ebuild ChangeLog
Date: Wed, 30 Nov 2011 18:48:42
Message-Id: 20111130184820.AD4262004B@flycatcher.gentoo.org
1 nelchael 11/11/30 18:48:20
2
3 Modified: ChangeLog
4 Added: scite-3.0.1.ebuild
5 Log:
6 Version bump to 3.0.1, update to EAPI 4, see bug #380061 and bug #392485.
7
8 (Portage version: 2.1.10.38/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.122 app-editors/scite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?rev=1.122&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?rev=1.122&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?r1=1.121&r2=1.122
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v
20 retrieving revision 1.121
21 retrieving revision 1.122
22 diff -u -r1.121 -r1.122
23 --- ChangeLog 13 Aug 2011 15:55:04 -0000 1.121
24 +++ ChangeLog 30 Nov 2011 18:48:20 -0000 1.122
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-editors/scite
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.121 2011/08/13 15:55:04 nelchael Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.122 2011/11/30 18:48:20 nelchael Exp $
30 +
31 +*scite-3.0.1 (30 Nov 2011)
32 +
33 + 30 Nov 2011; Krzysztof Pawlik <nelchael@g.o> +scite-3.0.1.ebuild,
34 + +files/scite-3.0.1-no-lua.patch:
35 + Version bump to 3.0.1, update to EAPI 4, see bug #380061 and bug #392485.
36
37 *scite-2.28 (13 Aug 2011)
38
39
40
41
42 1.1 app-editors/scite/scite-3.0.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/scite-3.0.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/scite-3.0.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: scite-3.0.1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-editors/scite/scite-3.0.1.ebuild,v 1.1 2011/11/30 18:48:20 nelchael Exp $
52
53 EAPI="4"
54
55 inherit toolchain-funcs eutils
56
57 MY_PV=${PV//./}
58 DESCRIPTION="A very powerful editor for programmers"
59 HOMEPAGE="http://www.scintilla.org/SciTE.html"
60 SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz"
61
62 LICENSE="Scintilla"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
65 IUSE="lua"
66
67 RDEPEND="x11-libs/gtk+:2
68 lua? ( >=dev-lang/lua-5 )"
69 DEPEND="${RDEPEND}
70 dev-util/pkgconfig
71 >=sys-apps/sed-4"
72
73 S="${WORKDIR}/${PN}/gtk"
74
75 src_prepare() {
76 cd "${WORKDIR}/scintilla/gtk"
77 sed -i makefile \
78 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
79 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
80 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
81 -e "s#-Os##" \
82 || die "error patching makefile"
83
84 cd "${WORKDIR}/scite/gtk"
85 sed -i makefile \
86 -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \
87 || die "error patching makefile"
88
89 cd "${S}"
90 sed -i makefile \
91 -e 's#usr/local#usr#g' \
92 -e 's#/gnome/apps/Applications#/applications#' \
93 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
94 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
95 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
96 -e 's#${D}##' \
97 -e 's#-g root#-g 0#' \
98 -e "s#-Os##" \
99 || die "error patching makefile"
100 cd "${WORKDIR}"
101 epatch "${FILESDIR}/${PN}-3.0.1-no-lua.patch"
102 }
103
104 src_compile() {
105 emake -C ../../scintilla/gtk
106 if use lua; then
107 emake
108 else
109 emake NO_LUA=1
110 fi
111 }
112
113 src_install() {
114 dodir /usr/bin
115 dodir /usr/share/{pixmaps,applications}
116
117 emake prefix="${D}/usr" install
118
119 # we have to keep this because otherwise it'll break upgrading
120 mv "${D}/usr/bin/SciTE" "${D}/usr/bin/scite" || die
121 dosym /usr/bin/scite /usr/bin/SciTE
122
123 # replace .desktop file with our own working version
124 rm -f "${D}/usr/share/applications/SciTE.desktop"
125 insinto /usr/share/applications
126 doins "${FILESDIR}/scite.desktop"
127
128 doman ../doc/scite.1
129 dodoc ../README
130 }