[med-svn] [libundead] 01/01: try to craft a meson build file but this does not work yet
Andreas Tille
tille at debian.org
Thu Mar 2 20:45:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libundead.
commit 581a0c96373b97edd9decfc61f42f07bd83819a0
Author: Andreas Tille <tille at debian.org>
Date: Thu Mar 2 21:44:52 2017 +0100
try to craft a meson build file but this does not work yet
---
debian/patches/meson.build.patch | 54 ++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 11 ++++++--
3 files changed, 64 insertions(+), 2 deletions(-)
diff --git a/debian/patches/meson.build.patch b/debian/patches/meson.build.patch
new file mode 100644
index 0000000..b86f2b1
--- /dev/null
+++ b/debian/patches/meson.build.patch
@@ -0,0 +1,54 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sat, 25 Feb 2017 20:34:50 +0100
+Description: Meson control file
+
+--- /dev/null
++++ b/meson.build
+@@ -0,0 +1,47 @@
++project('undeaD', 'd')
++
++project_version = '1.0.6'
++project_soversion = '0'
++
++src_dir = include_directories('.')
++pkgc = import('pkgconfig')
++
++#
++# Sources
++#
++undead_src = [
++ 'src/undead/doformat.d',
++ 'src/undead/socketstream.d',
++ 'src/undead/stream.d',
++ 'src/undead/date.d',
++ 'src/undead/internal/file.d',
++ 'src/undead/datebase.d',
++ 'src/undead/bitarray.d',
++ 'src/undead/regexp.d',
++ 'src/undead/metastrings.d',
++ 'src/undead/dateparse.d',
++ 'src/undead/cstream.d'
++]
++
++#
++# Includes
++#
++install_subdir('src/', install_dir: 'include/d/')
++
++#
++# Library and pkg-config
++#
++undead_lib = library('undead',
++ [undead_src],
++ include_directories: [src_dir],
++ install: true,
++ version: project_version,
++ soversion: project_soversion
++)
++pkgc.generate(name: 'undead',
++ libraries: undead_lib,
++ subdirs: 'd/',
++ version: project_version,
++ description: 'obsolete Phobos modules upgraded to work with the latest D'
++)
++
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4bf31d4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+meson.build.patch
diff --git a/debian/rules b/debian/rules
index 9e46668..575b0ba 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,15 @@
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
+CONFIG_FLAGS := --prefix=/usr \
+ --buildtype=plain
+
+INSTALL_DIR := $(CURDIR)/debian/libundead-dev
+export DFLAGS=-O -g -release
+
%:
dh $@
-override_dh_auto_build:
- make -f posix.mak
+override_dh_auto_configure:
+ mkdir build
+ (cd build && meson $(CONFIG_FLAGS) ..)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libundead.git
More information about the debian-med-commit
mailing list