Gentoo Archives: gentoo-commits

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