Contents of /smage/trunk/core/cmake/cmake-3.9.2-r1.smage2
Parent Directory | Revision Log
Revision 11127 -
(show annotations)
(download)
Fri Sep 8 12:13:13 2017 UTC (7 years ago) by niro
File size: 1423 byte(s)
Fri Sep 8 12:13:13 2017 UTC (7 years ago) by niro
File size: 1423 byte(s)
auto added: ver bump to 3.9.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="cmake" |
4 | PVER="3.9.2" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-util" |
8 | |
9 | DESCRIPTION="cmake is a cross-platform open-source make system." |
10 | HOMEPAGE="http://www.cmake.org/" |
11 | |
12 | # todo: system libuv and librhash support |
13 | DEPEND=">= sys-libs/libstdc++-5.3 |
14 | >= sys-libs/ncurses-6.0 |
15 | >= net-misc/curl-7 |
16 | >= dev-libs/expat-2 |
17 | >= dev-libs/libxml2-2.7 |
18 | >= dev-libs/xmlrpc-c-1.33.18 |
19 | >= dev-libs/jsoncpp-1.7.2" |
20 | |
21 | SDEPEND=">= sys-libs/libstdc++-dev-5.3 |
22 | >= sys-libs/ncurses-dev-6.0 |
23 | >= net-misc/curl-dev-7 |
24 | >= dev-libs/expat-dev-2 |
25 | >= dev-libs/libxml2-dev-2.7" |
26 | |
27 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
29 | |
30 | sminclude mbuild alx |
31 | msetfeature "!check" |
32 | |
33 | SRC_URI=( |
34 | http://www.cmake.org/files/v${PVER%.*}/${SRCFILE} |
35 | http://www.cmake.org/files/v${PVER%.*.*}/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | ) |
38 | |
39 | #UP2DATE="updatecmd ${HOMEPAGE}/ | grep 'Download CMake' | sed 's/.*Version\ \(.*\).*/\1/'" |
40 | UP2DATE="curl -s https://cmake.org/download/ | sed 's:.*\(cmake.*\.tar\.gz\).*:\1:' | highesttarball gz" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # disable libuv dep atm |
48 | sed -i '/CMAKE_USE_LIBUV 1/s/1/0/' CMakeLists.txt || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | ./bootstrap \ |
56 | --prefix=/usr \ |
57 | --docdir=/share/doc/${PNAME}-${PVER} \ |
58 | --datadir=/share/${PNAME} \ |
59 | --mandir=/share/man \ |
60 | --no-system-libs \ |
61 | --no-system-bzip2 \ |
62 | --no-system-libarchive \ |
63 | --no-system-librhash \ |
64 | || die |
65 | |
66 | mmake || die |
67 | } |