blob: 9a652fc0d4b5c3b027c785fc6783451949f939e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fxscintilla/fxscintilla-1.71.ebuild,v 1.14 2007/04/19 12:28:05 fmccor Exp $
inherit eutils multilib
DESCRIPTION="A free source code editing component for the FOX-Toolkit"
HOMEPAGE="http://www.nongnu.org/fxscintilla/"
SRC_URI="http://savannah.nongnu.org/download/fxscintilla/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 hppa ~ppc ~ppc64 ~sparc x86"
IUSE="doc"
DEPEND="=x11-libs/fox-1.2*
=x11-libs/fox-1.4*
=x11-libs/fox-1.6*"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/1.71-shared-libs.patch || die
epatch ${FILESDIR}/1.71-fox-SLOT.patch || die
einfo "Running autoreconf..."
touch NEWS AUTHORS
autoreconf --install --force || die "autoreconf error"
}
src_compile () {
# Borrowed from wxGTK ebuild
einfo "Building ${PN} for FOX-1.2..."
mkdir ${S}/build_1_2
cd ${S}/build_1_2
../configure \
--prefix=/usr \
--includedir=/usr/include \
--libdir=/usr/$(get_libdir) \
${EXTRA_ECONF} \
--enable-nolexer \
--with-fox-1-2 \
--with-foxinclude=/usr/include \
--with-foxlib=/usr/lib \
|| die "configure error"
emake || die "make error"
einfo "Building ${PN} for FOX-1.4..."
mkdir ${S}/build_1_4
cd ${S}/build_1_4
../configure \
--prefix=/usr \
--includedir=/usr/include \
--libdir=/usr/$(get_libdir) \
${EXTRA_ECONF} \
--enable-nolexer \
--with-fox-1-4 \
--with-foxinclude=/usr/include \
--with-foxlib=/usr/lib \
|| die "configure error"
emake || die "make error"
einfo "Building ${PN} for FOX-1.6..."
mkdir ${S}/build_1_6
cd ${S}/build_1_6
../configure \
--prefix=/usr \
--includedir=/usr/include \
--libdir=/usr/$(get_libdir) \
${EXTRA_ECONF} \
--enable-nolexer \
--with-fox-1-6 \
--with-foxinclude=/usr/include \
|| die "configure error"
emake || die "make error"
}
src_install () {
cd ${S}/build_1_2
emake DESTDIR="${D}" install || die "make install error"
cd ${S}/build_1_4
emake DESTDIR="${D}" install || die "make install error"
cd ${S}/build_1_6
emake DESTDIR="${D}" install || die "make install error"
cd ${S}
dodoc README
if use doc ; then
dodoc scintilla/doc/Lexer.txt
dohtml scintilla/doc/*
fi
}
pkg_postinst() {
elog "New as of 1.71:"
elog "FXScintilla is now built separately against FOX-1.2,-1.4 and -1.6."
elog "Support for FOX-1.0 has been dropped upstream."
elog "The Librarys are named for the FOX-release they correspond to, for"
elog "example: For FOX-1.2, the library is called libfxscintilla-1.2."
elog "Anything linked against previous releases of FOX and fxscintilla"
elog "may need to be rebuilt."
elog
elog "The nolexer libraries are now included in this release as well."
}
|