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