Switch debian/rules to use dh.

- bump debhelper build depends to 7.3;
- also drop unused Dart handling in the process;
- enable test suite.
ci/unstable
Modestas Vainius 15 years ago
parent 1f72aa40e1
commit 5041c90525

4
debian/changelog vendored

@ -1,6 +1,10 @@
cmake (2.8.0~rc6-0r1) UNRELEASED; urgency=low cmake (2.8.0~rc6-0r1) UNRELEASED; urgency=low
* New upstream development release. * New upstream development release.
* Switch debian/rules to use dh v7:
- bump debhelper build depends to 7.3;
- also drop unused Dart handling in the process;
- enable test suite.
-- Modestas Vainius <modestas@vainius.eu> Tue, 10 Nov 2009 20:25:36 +0200 -- Modestas Vainius <modestas@vainius.eu> Tue, 10 Nov 2009 20:25:36 +0200

2
debian/control vendored

@ -4,7 +4,7 @@ Priority: optional
Maintainer: A. Maitland Bottoms <bottoms@debian.org> Maintainer: A. Maitland Bottoms <bottoms@debian.org>
Uploaders: Modestas Vainius <modestas@vainius.eu> Uploaders: Modestas Vainius <modestas@vainius.eu>
DM-Upload-Allowed: yes DM-Upload-Allowed: yes
Build-Depends: debhelper (>= 7), libcurl4-gnutls-dev, libxmlrpc-c3-dev, libexpat1-dev, zlib1g-dev, Build-Depends: debhelper (>= 7.3), libcurl4-gnutls-dev, libxmlrpc-c3-dev, libexpat1-dev, zlib1g-dev,
libncurses5-dev, libqt4-dev (>= 4.4.0) libncurses5-dev, libqt4-dev (>= 4.4.0)
Standards-Version: 3.8.3 Standards-Version: 3.8.3
Vcs-Git: git://git.debian.org/git/collab-maint/cmake.git Vcs-Git: git://git.debian.org/git/collab-maint/cmake.git

80
debian/rules vendored

@ -1,24 +1,12 @@
#!/usr/bin/make -f #!/usr/bin/make -f
# The next line will cause Dart to be used if it is installed... BUILD_FLAGS_FILE = build-flags.cmake
#USE_DARTP:=$(shell if [ -d /usr/share/Dart ]; then echo true; fi )
USE_DARTP:=
DARCH := $(shell dpkg --print-architecture)
CFLAGS := -Wall -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)
BUILD_FLAGS_FILE := build-flags.cmake
# Hack for parisc64 to close bug #133696 # Hack for parisc64 to close bug #133696
ifeq ($(shell arch),parisc64) ifeq ($(shell arch),parisc64)
CFLAGS += -ffunction-sections CFLAGS += -ffunction-sections
endif endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
CONFIGURE_PARALLEL += --parallel=$(NUMJOBS)
endif
$(BUILD_FLAGS_FILE): $(BUILD_FLAGS_FILE):
touch $@ touch $@
echo 'set(CMAKE_SKIP_RPATH YES CACHE BOOL "Skip rpath" FORCE)' >> $@ echo 'set(CMAKE_SKIP_RPATH YES CACHE BOOL "Skip rpath" FORCE)' >> $@
@ -33,67 +21,17 @@ $(BUILD_FLAGS_FILE):
# echo 'set(TARGET_SOVERSION CACHE STRING "" FORCE)' >> $@ # echo 'set(TARGET_SOVERSION CACHE STRING "" FORCE)' >> $@
# echo 'set(BUILD_DOCUMENTATION ON CACHE BOOL "" FORCE)' >> $@ # echo 'set(BUILD_DOCUMENTATION ON CACHE BOOL "" FORCE)' >> $@
# echo 'set(BUILD_DOXYGEN ON CACHE BOOL "" FORCE)' >> $@ # echo 'set(BUILD_DOXYGEN ON CACHE BOOL "" FORCE)' >> $@
$(if $(USE_DARTP),echo 'set(DART_ROOT /usr/share/Dart CACHE STRING "" FORCE)' >> $@)
$(if $(USE_DARTP),echo 'set(BUILDNAME "cmake_2.2.3-1_$(DARCH).deb" CACHE STRING "" FORCE)' >> $@)
configure: configure-stamp override_dh_auto_configure: $(BUILD_FLAGS_FILE)
configure-stamp: $(QUILT_STAMPFN) $(BUILD_FLAGS_FILE)
dh_testdir
# pre-load the cache to avoid setting rpath:
rm -rf Build && mkdir -p Build rm -rf Build && mkdir -p Build
cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man \ +cd Build && ../bootstrap --prefix=/usr --docdir=/share/doc/cmake --mandir=/share/man \
--init=../$(BUILD_FLAGS_FILE) --system-libs $(CONFIGURE_PARALLEL) --init=../$(BUILD_FLAGS_FILE) --system-libs $(CONFIGURE_PARALLEL)
chmod -x ChangeLog.manual
chmod -x Modules/*.cmake Modules/*.cmake.in Modules/*.cxx Modules/Platform/*
touch $@
build: build-stamp
build-stamp: configure-stamp
dh_testdir
cd Build && $(MAKE) $(if $(USE_DARTP),Experimental && $(MAKE) ExperimentalSubmit)
touch $@
clean:
dh_testdir
dh_testroot
rm -rf build-stamp configure-stamp $(BUILD_FLAGS_FILE)
rm -rf Build
dh_clean
install: build override_dh_auto_clean:
dh_testdir dh_auto_clean
dh_testroot rm -f $(BUILD_FLAGS_FILE)
dh_prep
dh_installdirs
# Add here commands to install the package into debian/cmake.
cd Build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
#cp Docs/cmake-indent.vim debian/cmake/usr/share/vim/addons/indent/cmake.vim
#cp Docs/cmake-syntax.vim debian/cmake/usr/share/vim/addons/syntax/cmake.vim
binary-arch: export DH_OPTIONS=-a %:
binary-indep: export DH_OPTIONS=-i dh --builddirectory=Build $@
binary-arch binary-indep: build install
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installexamples
dh_installmenu
dh_installemacsen
dh_installcron
dh_installman
dh_installinfo
dh_installchangelogs ChangeLog.manual
dh_lintian
dh_link
dh_strip
dh_compress -XCMake.pdf
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch .PHONY: override_dh_auto_configure override_dh_auto_clean
.PHONY: build clean binary-indep binary-arch binary install configure

Loading…
Cancel
Save