From: | "Krzysiek Pawlik (nelchael)" <nelchael@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-editors/scite: scite-2.03.ebuild ChangeLog |
Date: | Sat, 27 Feb 2010 11:53:19 |
Message-Id: | E1NlLES-0000cM-1I@stork.gentoo.org |
1 | nelchael 10/02/27 11:53:16 |
2 | |
3 | Modified: ChangeLog |
4 | Added: scite-2.03.ebuild |
5 | Log: |
6 | Version bump. |
7 | (Portage version: 2.1.7.17/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.89 app-editors/scite/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/ChangeLog?rev=1.89&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/ChangeLog?rev=1.89&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/ChangeLog?r1=1.88&r2=1.89 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v |
19 | retrieving revision 1.88 |
20 | retrieving revision 1.89 |
21 | diff -u -r1.88 -r1.89 |
22 | --- ChangeLog 12 Dec 2009 13:24:15 -0000 1.88 |
23 | +++ ChangeLog 27 Feb 2010 11:53:15 -0000 1.89 |
24 | @@ -1,6 +1,11 @@ |
25 | # ChangeLog for app-editors/scite |
26 | -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.88 2009/12/12 13:24:15 nelchael Exp $ |
28 | +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 | +# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.89 2010/02/27 11:53:15 nelchael Exp $ |
30 | + |
31 | +*scite-2.03 (27 Feb 2010) |
32 | + |
33 | + 27 Feb 2010; Krzysiek Pawlik <nelchael@g.o> +scite-2.03.ebuild: |
34 | + Version bump. |
35 | |
36 | *scite-2.01 (12 Dec 2009) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 app-editors/scite/scite-2.03.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/scite-2.03.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/scite/scite-2.03.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: scite-2.03.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.03.ebuild,v 1.1 2010/02/27 11:53:15 nelchael Exp $ |
51 | |
52 | inherit toolchain-funcs eutils |
53 | |
54 | MY_PV=${PV//./} |
55 | DESCRIPTION="A very powerful editor for programmers" |
56 | HOMEPAGE="http://scintilla.sourceforge.net/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 "${S}" |
83 | sed -i makefile \ |
84 | -e 's#usr/local#usr#g' \ |
85 | -e 's#/gnome/apps/Applications#/applications#' \ |
86 | -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ |
87 | -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ |
88 | -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ |
89 | -e 's#${D}##' \ |
90 | -e 's#-g root#-g 0#' \ |
91 | -e "s#-Os##" \ |
92 | || die "error patching makefile" |
93 | cd "${WORKDIR}" |
94 | epatch "${FILESDIR}/${PN}-1.79-install.patch" |
95 | epatch "${FILESDIR}/${PN}-1.79-no-lua.patch" |
96 | } |
97 | |
98 | src_compile() { |
99 | make -C ../../scintilla/gtk || die "prep make failed" |
100 | if use lua; then |
101 | emake || die "make failed" |
102 | else |
103 | emake NO_LUA=1 || die "make failed" |
104 | fi |
105 | } |
106 | |
107 | src_install() { |
108 | dodir /usr/bin |
109 | dodir /usr/share/{pixmaps,applications} |
110 | |
111 | make prefix="${D}/usr" install || die |
112 | |
113 | # we have to keep this because otherwise it'll break upgrading |
114 | mv "${D}/usr/bin/SciTE" "${D}/usr/bin/scite" |
115 | dosym /usr/bin/scite /usr/bin/SciTE |
116 | |
117 | # replace .desktop file with our own working version |
118 | insinto /usr/share/applications |
119 | rm -f "${D}/usr/share/applications/SciTE.desktop" |
120 | doins "${FILESDIR}/scite.desktop" |
121 | |
122 | doman ../doc/scite.1 |
123 | dodoc ../README |
124 | } |