From 3c784ca2f52e65b437e41e08f6a019a15cb5b86b Mon Sep 17 00:00:00 2001 From: Henk Kalkwater Date: Tue, 2 Mar 2021 15:53:58 +0100 Subject: [PATCH] First packaging attempt --- debian/README.Debian | 6 ++++++ debian/README.source | 10 +++++++++ debian/changelog | 5 +++++ debian/control | 30 ++++++++++++++++++++++++++ debian/copyright | 37 +++++++++++++++++++++++++++++++++ debian/libeventcore-dev.dirs | 2 ++ debian/libeventcore-dev.install | 3 +++ debian/libeventcore-docs.docs | 2 ++ debian/libeventcore0.dirs | 1 + debian/libeventcore0.install | 1 + debian/rules | 26 +++++++++++++++++++++++ debian/source/format | 1 + meson.build | 12 +---------- 13 files changed, 125 insertions(+), 11 deletions(-) create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libeventcore-dev.dirs create mode 100644 debian/libeventcore-dev.install create mode 100644 debian/libeventcore-docs.docs create mode 100644 debian/libeventcore0.dirs create mode 100644 debian/libeventcore0.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..9535f45 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +eventcore for Debian +------------------- + + + + -- Chris Josten Mon, 01 Mar 2021 23:11:10 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..d554760 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,10 @@ +eventcore for Debian +------------------- + + + + + + -- Chris Josten Mon, 01 Mar 2021 23:11:10 +0100 + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..875e7a2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libeventcore (0.9.13-1) unstable; urgency=medium + + * Initial release. + + -- Chris Josten Mon, 01 Mar 2021 23:11:10 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4da0102 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: libeventcore +Priority: optional +Maintainer: Chris Josten +Build-Depends: debhelper-compat (= 12), + dh-dlang, + meson +Standards-Version: 4.5.0 +Section: libs +Homepage: https://github.com/vibe-d/eventcore + +Package: libeventcore0 +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: High performance proactor event loop abstraction library + High-performance native event loop abstraction for D, focused on asynchronous I/O and GUI message + integration. + +Package: libeventcore-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libeventcore0 (= ${binary:Version}), + libtaggedalgebraic-dev ( >=0.10.12), + ${misc:Depends} +Description: High performance proactor event loop abstraction library + High-performance native event loop abstraction for D, focused on asynchronous I/O and GUI message + integration. + . + Development package for libeventcore0 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8f1f78f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: eventcore +Upstream-Contact: +Source: https://github.com/vibe-d/eventcore/ + +Files: * +Copyright: 2016-2018 Sönke Ludwig +License: BSL-1.0 + +Files: debian/* +Copyright: 2021 Chris Josten +License: BSL-1.0 + +License: BSL-1.0 + Boost Software License - Version 1.0 - August 17th, 2003 + + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/debian/libeventcore-dev.dirs b/debian/libeventcore-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libeventcore-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libeventcore-dev.install b/debian/libeventcore-dev.install new file mode 100644 index 0000000..7df81cd --- /dev/null +++ b/debian/libeventcore-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* diff --git a/debian/libeventcore-docs.docs b/debian/libeventcore-docs.docs new file mode 100644 index 0000000..7319041 --- /dev/null +++ b/debian/libeventcore-docs.docs @@ -0,0 +1,2 @@ +README.source +README.Debian diff --git a/debian/libeventcore0.dirs b/debian/libeventcore0.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/libeventcore0.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libeventcore0.install b/debian/libeventcore0.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libeventcore0.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b66ac04 --- /dev/null +++ b/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +include /usr/share/dh-dlang/dlang-flags.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ --buildsystem=meson + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/meson.build b/meson.build index 94377e9..a7f1070 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('eventcore', 'd', - meson_version: '>=0.53', + meson_version: '>=0.49', version: '0.9.13', ) @@ -99,16 +99,6 @@ else error('No combination of driver and compatible host machine OS specified') endif -summary( - { - 'Chosen driver': driver_opt, - 'Default driver': default_driver, - 'Using GAIA': gaia_dep.found() - }, - bool_yn: true -) - - source_root = meson.source_root() build_root = meson.build_root() subdir('source/eventcore')