Lines 1-8
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
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 $ |
|
|
4 |
|
3 |
|
5 |
inherit elisp-common toolchain-funcs eutils versionator qt3 flag-o-matic |
4 |
|
|
|
5 |
inherit elisp-common toolchain-funcs eutils versionator flag-o-matic |
6 |
|
6 |
|
7 |
MY_PV="${PV/rc/RC-}" |
7 |
MY_PV="${PV/rc/RC-}" |
8 |
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})" |
8 |
MY_P="${PN}-$(replace_version_separator 3 - ${MY_PV})" |
Lines 14-24
Link Here
|
14 |
LICENSE="CMake" |
14 |
LICENSE="CMake" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
16 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
17 |
IUSE="emacs vim-syntax" |
17 |
IUSE="emacs qt4 vim-syntax" |
18 |
|
18 |
|
19 |
DEPEND=">=net-misc/curl-7.16.4 |
19 |
DEPEND=">=net-misc/curl-7.16.4 |
20 |
>=dev-libs/expat-2.0.1 |
20 |
>=dev-libs/expat-2.0.1 |
21 |
>=dev-libs/libxml2-2.6.28 |
21 |
>=dev-libs/libxml2-2.6.28 |
|
|
22 |
qt4? ( >=x11-libs/qt-4.2 ) |
22 |
>=dev-libs/xmlrpc-c-1.06.09 |
23 |
>=dev-libs/xmlrpc-c-1.06.09 |
23 |
emacs? ( virtual/emacs ) |
24 |
emacs? ( virtual/emacs ) |
24 |
vim-syntax? ( || ( |
25 |
vim-syntax? ( || ( |
Lines 29-34
Link Here
|
29 |
SITEFILE="50${PN}-gentoo.el" |
30 |
SITEFILE="50${PN}-gentoo.el" |
30 |
VIMFILE="${PN}.vim" |
31 |
VIMFILE="${PN}.vim" |
31 |
|
32 |
|
|
|
33 |
S="${WORKDIR}/${MY_P}" |
34 |
|
32 |
pkg_setup() { |
35 |
pkg_setup() { |
33 |
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then |
36 |
if ! built_with_use -o dev-libs/xmlrpc-c curl libwww; then |
34 |
echo |
37 |
echo |
Lines 44-51
Link Here
|
44 |
unpack ${A} |
47 |
unpack ${A} |
45 |
cd "${S}" |
48 |
cd "${S}" |
46 |
|
49 |
|
|
|
50 |
# fix rpath handling security bug bgo# 224901 |
51 |
epatch "${FILESDIR}/${PN}-${PV}-rpath.patch" |
52 |
|
47 |
# Link against the shared Python library rather than the static one |
53 |
# Link against the shared Python library rather than the static one |
48 |
epatch "${FILESDIR}/${PN}-FindPythonLibs.patch" |
54 |
epatch "${FILESDIR}/${PN}-FindPythonLibs.patch" |
|
|
55 |
|
49 |
} |
56 |
} |
50 |
|
57 |
|
51 |
src_compile() { |
58 |
src_compile() { |
Lines 55-66
Link Here
|
55 |
|
62 |
|
56 |
tc-export CC CXX LD |
63 |
tc-export CC CXX LD |
57 |
|
64 |
|
|
|
65 |
local qt_arg |
66 |
if use qt4; then |
67 |
qt_arg="--qt-gui" |
68 |
else |
69 |
qt_arg="--no-qt-gui" |
70 |
fi |
71 |
|
72 |
local par_arg |
73 |
echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null |
74 |
if [ $? -eq 0 ]; then |
75 |
par_arg=$(echo $MAKEOPTS | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | egrep -o '[[:digit:]]+') |
76 |
par_arg="--parallel=${par_arg}" |
77 |
else |
78 |
par_arg="--parallel=1" |
79 |
fi |
80 |
|
58 |
./bootstrap \ |
81 |
./bootstrap \ |
59 |
--system-libs \ |
82 |
--system-libs \ |
60 |
--prefix=/usr \ |
83 |
--prefix=/usr \ |
61 |
--docdir=/share/doc/${PF} \ |
84 |
--docdir=/share/doc/${PF} \ |
62 |
--datadir=/share/${PN} \ |
85 |
--datadir=/share/${PN} \ |
63 |
--mandir=/share/man || die "./bootstrap failed" |
86 |
--mandir=/share/man \ |
|
|
87 |
"$qt_arg" \ |
88 |
"$par_arg" || die "./bootstrap failed" |
89 |
|
64 |
emake || die "emake failed." |
90 |
emake || die "emake failed." |
65 |
if use emacs; then |
91 |
if use emacs; then |
66 |
elisp-compile Docs/cmake-mode.el || die "elisp compile failed" |
92 |
elisp-compile Docs/cmake-mode.el || die "elisp compile failed" |