cmake: split the gui to a new cmake-gui pkg (issue #57).

This commit is contained in:
Juan RP 2013-04-06 17:27:28 +02:00
parent cb1937ad06
commit 1cdea57ae3
4 changed files with 36 additions and 16 deletions

View File

@ -1 +0,0 @@
cmake

View File

@ -0,0 +1,34 @@
# Template file for 'cmake-gui'
pkgname=cmake-gui
version=2.8.10.2
revision=2
wrksrc="cmake-${version}"
# ETOOHUGE
disable_debug=yes
build_style=configure
configure_script=./bootstrap
configure_args="--prefix=/usr --mandir=/share/man
--docdir=/share/doc/cmake --system-libs --qt-gui"
if [ -n "$XBPS_MAKEJOBS" ]; then
configure_args="$configure_args --parallel=$XBPS_MAKEJOBS"
fi
makedepends="zlib-devel expat-devel libcurl-devel
ncurses-devel libarchive-devel>=3.1.2 qt-devel"
short_desc="Cross-platform, open-source build system - QT GUI"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://www.cmake.org"
distfiles="http://www.cmake.org/files/v2.8/cmake-$version.tar.gz"
checksum=ce524fb39da06ee6d47534bbcec6e0b50422e18b62abc4781a4ba72ea2910eb1
post_install() {
# Only interested in the gui and its files.
for f in ${DESTDIR}/usr/bin/* ${DESTDIR}/usr/share/man/man1/*; do
_fname=$(basename ${f})
if [ "${_fname}" = "cmake-gui" -o "${_fname}" = "cmake-gui.1" ]; then
continue
fi
rm -f ${f}
done
rm -rf ${DESTDIR}/usr/share/{doc,cmake*,aclocal}
}

View File

@ -1,12 +0,0 @@
# Template file for 'cmake-gui'.
#
depends="cmake>=${version}"
short_desc="cmake QT GUI"
do_install() {
vmove usr/bin/cmake-gui usr/bin
vmove usr/share/mime usr/share
vmove usr/share/applications usr/share
vmove usr/share/pixmaps usr/share
vmove usr/share/man/man1/cmake-gui.1 usr/share/man/man1
}

View File

@ -2,18 +2,17 @@
pkgname=cmake
version=2.8.10.2
revision=2
subpackages="cmake-gui"
# ETOOHUGE
disable_debug=yes
build_style=configure
configure_script=./bootstrap
configure_args="--prefix=/usr --mandir=/share/man
--docdir=/share/doc/cmake --system-libs --qt-gui"
--docdir=/share/doc/cmake --system-libs"
if [ -n "$XBPS_MAKEJOBS" ]; then
configure_args="$configure_args --parallel=$XBPS_MAKEJOBS"
fi
makedepends="zlib-devel expat-devel libcurl-devel
ncurses-devel libarchive-devel>=3.1.2 qt-devel"
ncurses-devel libarchive-devel>=3.1.2"
short_desc="Cross-platform, open-source build system"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"