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