Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.6.0.ebuild,v 1.1 2008/05/08 15:53:11 cryos Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/cmake/cmake-2.6.0.ebuild,v 1.1 2008/05/08 15:53:11 cryos Exp $ |
4 |
|
4 |
|
5 |
inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic |
5 |
EAPI="1" |
|
|
6 |
|
7 |
inherit elisp-common toolchain-funcs eutils versionator flag-o-matic |
6 |
|
8 |
|
7 |
MY_PV="${PV/rc/RC-}" |
9 |
MY_PV="${PV/rc/RC-}" |
8 |
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})" |
10 |
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})" |
Lines 14-26
Link Here
|
14 |
LICENSE="CMake" |
16 |
LICENSE="CMake" |
15 |
SLOT="0" |
17 |
SLOT="0" |
16 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
17 |
IUSE="emacs vim-syntax" |
19 |
IUSE="emacs qt4 vim-syntax" |
18 |
|
20 |
|
19 |
DEPEND=">=net-misc/curl-7.16.4 |
21 |
DEPEND=">=net-misc/curl-7.16.4 |
20 |
>=dev-libs/expat-2.0.1 |
22 |
>=dev-libs/expat-2.0.1 |
21 |
>=dev-libs/libxml2-2.6.28 |
23 |
>=dev-libs/libxml2-2.6.28 |
22 |
>=dev-libs/xmlrpc-c-1.06.09 |
24 |
>=dev-libs/xmlrpc-c-1.06.09 |
23 |
emacs? ( virtual/emacs ) |
25 |
emacs? ( virtual/emacs ) |
|
|
26 |
qt4? ( || ( ( x11-libs/qt-core:4 |
27 |
x11-libs/qt-gui:4 ) |
28 |
>=x11-libs/qt-4.3:4 ) ) |
24 |
vim-syntax? ( || ( |
29 |
vim-syntax? ( || ( |
25 |
app-editors/vim |
30 |
app-editors/vim |
26 |
app-editors/gvim ) )" |
31 |
app-editors/gvim ) )" |
Lines 29-34
Link Here
|
29 |
SITEFILE="50${PN}-gentoo.el" |
34 |
SITEFILE="50${PN}-gentoo.el" |
30 |
VIMFILE="${PN}.vim" |
35 |
VIMFILE="${PN}.vim" |
31 |
|
36 |
|
|
|
37 |
S="${WORKDIR}/${MY_P}" |
38 |
|
32 |
pkg_setup() { |
39 |
pkg_setup() { |
33 |
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then |
40 |
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then |
34 |
echo |
41 |
echo |
Lines 44-49
Link Here
|
44 |
unpack ${A} |
51 |
unpack ${A} |
45 |
cd "${S}" |
52 |
cd "${S}" |
46 |
|
53 |
|
|
|
54 |
# Fix compatibility with -Wl,--gc-sections, bug #235731 |
55 |
epatch "${FILESDIR}/${PN}-2.6.1-gc-sections.patch" |
56 |
|
57 |
# Fix rpath handling security, bug #224901 |
58 |
epatch "${FILESDIR}/${PN}-2.6.1-rpath.patch" |
59 |
|
47 |
# Link against the shared Python library rather than the static one |
60 |
# Link against the shared Python library rather than the static one |
48 |
epatch "${FILESDIR}/${PN}-FindPythonLibs.patch" |
61 |
epatch "${FILESDIR}/${PN}-FindPythonLibs.patch" |
49 |
} |
62 |
} |
Lines 55-66
Link Here
|
55 |
|
68 |
|
56 |
tc-export CC CXX LD |
69 |
tc-export CC CXX LD |
57 |
|
70 |
|
|
|
71 |
local qt_arg |
72 |
if use qt4; then |
73 |
qt_arg="--qt-gui" |
74 |
else |
75 |
qt_arg="--no-qt-gui" |
76 |
fi |
77 |
|
78 |
local par_arg |
79 |
echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null |
80 |
if [ $? -eq 0 ]; then |
81 |
par_arg=$(echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+') |
82 |
par_arg="--parallel=${par_arg}" |
83 |
else |
84 |
par_arg="--parallel=1" |
85 |
fi |
86 |
|
87 |
|
58 |
./bootstrap \ |
88 |
./bootstrap \ |
59 |
--system-libs \ |
89 |
--system-libs \ |
60 |
--prefix=/usr \ |
90 |
--prefix=/usr \ |
61 |
--docdir=/share/doc/${PF} \ |
91 |
--docdir=/share/doc/${PF} \ |
62 |
--datadir=/share/${PN} \ |
92 |
--datadir=/share/${PN} \ |
63 |
--mandir=/share/man || die "./bootstrap failed" |
93 |
--mandir=/share/man \ |
|
|
94 |
"$qt_arg" \ |
95 |
"$par_arg" || die "./bootstrap failed" |
96 |
|
64 |
emake || die "emake failed." |
97 |
emake || die "emake failed." |
65 |
if use emacs; then |
98 |
if use emacs; then |
66 |
elisp-compile Docs/cmake-mode.el || die "elisp compile failed" |
99 |
elisp-compile Docs/cmake-mode.el || die "elisp compile failed" |