Skip to content

Commit

Permalink
Merge pull request #47 from cginternals/ppa-deployment
Browse files Browse the repository at this point in the history
Add default deployment for ubuntu PPAs (refs #43)
  • Loading branch information
scheibel authored Feb 2, 2017
2 parents dea9d03 + a971ed9 commit dbdd367
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/ubuntu-ppa/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

cmake-init (2.0.0-0) UNRELEASED; urgency=low

* Initial release.

-- Willy Scheibel <[email protected]> Tue, 31 Jan 2017 13:30:00 +0100
1 change: 1 addition & 0 deletions deploy/ubuntu-ppa/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
46 changes: 46 additions & 0 deletions deploy/ubuntu-ppa/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Source: cmake-init
Section: misc
Priority: optional
Maintainer: Willy Scheibel <[email protected]>
Build-Depends: build-essential, cmake, qtbase5-dev, doxygen, graphviz
Standards-Version: 3.8.0

Package: libcmake-init
Architecture: any
Depends:
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.

Package: libcmake-init-dev
Architecture: any
Depends: libcmake-init
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.

Package: libcmake-init-examples-data
Architecture: any
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.

Package: libcmake-init-examples
Architecture: any
Depends: libcmake-init, libcmake-init-examples-data, libqt5core5a
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.

Package: libcmake-init-docs
Architecture: any
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.

Package: libcmake-init-dbg
Architecture: any
Depends: libcmake-init, libcmake-init-dev
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.

Package: libcmake-init-all
Architecture: any
Depends: libcmake-init, libcmake-init-dev, libcmake-init-docs, libcmake-init-examples
Homepage: https://github.com/cginternals/cmake-init
Description: Template for reliable, cross-platform C++ project setup using cmake.
18 changes: 18 additions & 0 deletions deploy/ubuntu-ppa/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
This package was debianised by Willy Scheibel <[email protected]> on
Tue, 31 Jan 2017 13:30:00 +0100

It was downloaded from:

https://github.com/cginternals/cmake-init

Upstream Author:

CG Internals

Copyright:

Copyright (c) 2015-2017 CG Internals GmbH and Computer Graphics Systems Group at the Hasso-Plattner-Institute, Germany.

License:

This software is available to you under the terms of the MIT license, see "https://github.com/cginternals/cmake-init/blob/master/LICENSE".
83 changes: 83 additions & 0 deletions deploy/ubuntu-ppa/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#!/usr/bin/make -f

BUILDDIR = build
BUILDDEBUGDIR = build-debug

# firstly called by launchpad
clean:
rm -rf $(BUILDDIR)
rm -rf $(BUILDDEBUGDIR)

# secondly called by launchpad
build: build-arch

build-arch:
mkdir $(BUILDDIR)
cd $(BUILDDIR);cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DOPTION_BUILD_TESTS=Off -DOPTION_BUILD_EXAMPLES=On -DOPTION_BUILD_DOCS=On ..
make -C $(BUILDDIR)
mkdir $(BUILDDEBUGDIR)
cd $(BUILDDEBUGDIR);cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DOPTION_BUILD_TESTS=Off -DOPTION_BUILD_EXAMPLES=Off -DOPTION_BUILD_DOCS=Off ..
make -C $(BUILDDEBUGDIR)

# thirdly called by launchpad
binary: binary-arch

binary-arch: libcmake-init libcmake-init-dev libcmake-init-docs libcmake-init-dbg libcmake-init-examples-data libcmake-init-examples libcmake-init-all

libcmake-init:
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=runtime make component_install
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init
dpkg --build debian/tmp ..
rm -rf debian/tmp

libcmake-init-dev:
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=dev make component_install
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init-dev
dpkg --build debian/tmp ..
rm -rf debian/tmp

libcmake-init-docs:
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=docs make component_install
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init-docs
dpkg --build debian/tmp ..
rm -rf debian/tmp

libcmake-init-dbg:
cd $(BUILDDEBUGDIR); DESTDIR=../debian/tmp COMPONENT=runtime make component_install
cd $(BUILDDEBUGDIR); DESTDIR=../debian/tmp COMPONENT=dev make component_install
rm -rf debian/tmp/usr/include
rm debian/tmp/usr/share/*/*-config.cmake
rm debian/tmp/usr/share/*/AUTHORS
rm debian/tmp/usr/share/*/LICENSE
rm debian/tmp/usr/share/*/README.md
rm debian/tmp/usr/share/*/VERSION
rm debian/tmp/usr/share/*/cmake/*/*-export.cmake
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init-dbg
dpkg --build debian/tmp ..
rm -rf debian/tmp

libcmake-init-examples-data:
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=examples_data make component_install
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init-examples-data
dpkg --build debian/tmp ..
rm -rf debian/tmp

libcmake-init-examples:
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=examples_qt make component_install
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init-examples
dpkg --build debian/tmp ..
rm -rf debian/tmp

libcmake-init-all:
mkdir -p debian/tmp/DEBIAN
dpkg-gencontrol -plibcmake-init-all
dpkg --build debian/tmp ..
rm -rf debian/tmp

.PHONY: build build-arch binary binary-arch clean libcmake-init libcmake-init-dev libcmake-init-docs libcmake-init-dbg libcmake-init-examples-data libcmake-init-examples libcmake-init-all
1 change: 1 addition & 0 deletions deploy/ubuntu-ppa/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
3 changes: 3 additions & 0 deletions deploy/ubuntu-ppa/recipe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# bzr-builder format 0.3 deb-version {debupstream}+{revno}
lp:cmake-init
nest-part packaging lp:cmake-init deploy/ubuntu-ppa/debian debian master

0 comments on commit dbdd367

Please sign in to comment.