diff --git a/.gitignore b/.gitignore index 4d94201..d6f6fed 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,26 @@ *~ modest.pc uninstal.mk +debian/.debhelper/ +debian/debhelper-build-stamp +debian/files +debian/libmodest-dev.debhelper.log +debian/libmodest-dev.substvars +debian/libmodest-dev/ +debian/libmodest.debhelper.log +debian/libmodest.substvars +debian/libmodest/ +debian/tmp/ +examples/myhtml/attributes_high_level +examples/myhtml/fragment_high_level +examples/myhtml/get_title_low_level +examples/myhtml/insert_in_appropriate_place_high_level +examples/myhtml/parse_without_whitespace +examples/myhtml/string_manipulate_high_level +lib/ +test/mycore/utils/avl_tree +test/mycss/declaration +test/myencoding/encoding_detect_meta +test/myhtml/commoncrawl +test/myurl/url +test_suite/ diff --git a/Makefile b/Makefile index 504fd0d..36e3976 100644 --- a/Makefile +++ b/Makefile @@ -112,14 +112,16 @@ BUILD_SUB_DIRS := examples $(TEST_DIR) PROJECT_INSTALL_LIBRARY := lib PROJECT_INSTALL_HEADER := include -libdir ?= $(prefix)/$(PROJECT_INSTALL_LIBRARY) -includedir ?= $(prefix)/$(PROJECT_INSTALL_HEADER) - -MODEST_INSTALL_CREATE_DIR := mkdir -p $(prefix)/$(PROJECT_INSTALL_LIBRARY) -MODEST_INSTALL_COMMAND := $(MODEST_INSTALL_CREATE_DIR) $(MODEST_UTILS_NEW_LINE) cp -av $(LIB_DIR_BASE)/* $(libdir) +libdir ?= $(DESTDIR)$(prefix)/$(PROJECT_INSTALL_LIBRARY) +includedir ?= $(DESTDIR)$(prefix)/$(PROJECT_INSTALL_HEADER) +MODEST_INSTALL_CREATE_DIR := mkdir -p $(libdir) +ifneq ($(PROJECT_INSTALL_WITHOUT_HEADERS),YES) + MODEST_INSTALL_CREATE_DIR += $(includedir) +endif + +MODEST_INSTALL_COMMAND := cp -av $(LIB_DIR_BASE)/* $(libdir) ifneq ($(PROJECT_INSTALL_WITHOUT_HEADERS),YES) - MODEST_INSTALL_CREATE_DIR += $(prefix)/$(PROJECT_INSTALL_HEADER) MODEST_INSTALL_COMMAND += $(MODEST_UTILS_NEW_LINE) cp -av $(INCLUDE_DIR_API)/* $(includedir) endif @@ -154,6 +156,10 @@ $(SED) \ -e 's,@libname\@,$(LIB_NAME),g' \ -e 's,@description\@,$(DESCRIPTION),g' \ $1 > $2 +MODEST_INSTALL_CREATE_DIR += $(libdir)/pkgconfig +MODEST_INSTALL_COMMAND += $(MODEST_UTILS_NEW_LINE) cp -av $(MODEST_PKG_CONFIG_FILE) $(libdir)/pkgconfig + +MODEST_INSTALL_COMMAND := $(MODEST_INSTALL_CREATE_DIR) $(MODEST_UTILS_NEW_LINE) $(MODEST_INSTALL_COMMAND) #******************** # Target options diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7a8c2ea --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +modest (1.0.0) stable; urgency=medium + + * Initial release + + -- Alexander Borisov Tue, 21 Mar 2017 14:46:45 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2060e9c --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: modest +Section: libs +Priority: optional +Maintainer: Alexander Fedyashov +Standards-Version: 3.9.5 +Vcs-Git: git://github.com/lexborisov/Modest.git +Vcs-Browser: https://github.com/lexborisov/Modest +Homepage: https://github.com/lexborisov/Modest +Build-Depends: + debhelper (>= 9) + +Package: libmodest +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: + ${misc:Depends}, + ${shlibs:Depends} +Description: Modest — a pure C HTML renderer + Modest is a fast HTML renderer implemented as a pure C99 library with no + outside dependencies. + +Package: libmodest-dev +Section: libdevel +Architecture: any +Depends: + libmodest (= ${binary:Version}), + ${misc:Depends} +Description: Modest — a pure C HTML renderer (development files) + Modest is a fast HTML renderer implemented as a pure C99 library with no + outside dependencies. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6ff8cf3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,17 @@ +Format: http://dep.debian.net/deps/dep5/ +Files: * +Copyright: 2015-2018 Alexander Borisov +License: LGPL + . + This is free software; you can redistribute it and/or modify it under the + terms of the GNU Leser General Public License as published by the Free + Software Foundation; either version 2.1, or (at your option) any later + version. + . + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + On Debian systems, you can find the GNU Lesser General Public License + version 2.1 in the file /usr/share/common-licenses/LGPL-2.1. \ No newline at end of file diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/libmodest-dev.install b/debian/libmodest-dev.install new file mode 100644 index 0000000..ab7b23f --- /dev/null +++ b/debian/libmodest-dev.install @@ -0,0 +1,4 @@ +usr/include +usr/lib/libmodest.so +usr/lib/libmodest_static.a +usr/lib/pkgconfig diff --git a/debian/libmodest.install b/debian/libmodest.install new file mode 100644 index 0000000..262153a --- /dev/null +++ b/debian/libmodest.install @@ -0,0 +1 @@ +usr/lib/libmodest-*.so diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..282f914 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +%: + dh $@ --parallel + +override_dh_auto_install: + prefix=/usr dh_auto_install -- diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)