Commit 27de4940 authored by Anton Gladky's avatar Anton Gladky

Initial import of debian directory.

parent 2be2457b
svgpp (1.2.3+dsfg1-1) unstable; urgency=medium
* Initial packaging. (Closes: #865564)
-- Anton Gladky <gladk@debian.org> Thu, 22 Jun 2017 21:00:12 +0200
Source: svgpp
Maintainer: Anton Gladky <gladk@debian.org>
Section: libs
Priority: optional
Testsuite: autopkgtest
Build-Depends: cmake,
debhelper (>= 10),
python3-sphinx,
sphinx-common
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/svgpp.git
Vcs-Git: https://anonscm.debian.org/git/collab-maint/svgpp.git
Homepage: https://github.com/tatsuhiro-t/svgpp
Package: libsvgpp-dev
Architecture: any
Section: libdevel
Priority: extra
Depends: ${misc:Depends}
Description: WebSocket library written in C. Development files
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: svgpp
Source: https://github.com/svgpp/svgpp
Files-Excluded:
third_party/agg
third_party/gtest
third_party/stb
Files: *
Copyright: 2014-2017 Oleg Maximenko <olegmax@gmail.com>
License: Boost-1.0
License: Boost-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.
include/* usr/include/
Description: Use packaged version of third_party libs.
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2017-06-24
Index: svgpp/src/CMakeLists.txt
===================================================================
--- svgpp.orig/src/CMakeLists.txt
+++ svgpp/src/CMakeLists.txt
@@ -4,10 +4,6 @@ project(svgpp)
find_package(Boost REQUIRED)
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
include_directories(
${Boost_INCLUDE_DIRS}
)
@@ -22,6 +18,5 @@ if (MSVC)
)
endif()
-add_subdirectory(demo/render)
add_subdirectory(samples)
add_subdirectory(test)
Index: svgpp/src/test/CMakeLists.txt
===================================================================
--- svgpp.orig/src/test/CMakeLists.txt
+++ svgpp/src/test/CMakeLists.txt
@@ -2,16 +2,16 @@ cmake_minimum_required (VERSION 2.8)
project(svgpp_test)
-set(GTEST_DIR ../../third_party/googletest/googletest)
-set(GMOCK_DIR ../../third_party/googletest/googlemock)
+set(GTEST_DIR /usr/src/googletest/googletest)
+set(GMOCK_DIR /usr/src/googletest/googlemock)
include_directories(
../../include
- ../../third_party
${GTEST_DIR}
${GTEST_DIR}/include
${GMOCK_DIR}
${GMOCK_DIR}/include
+ ../../third_party
)
if (MSVC)
Description: Use packaged version of third_party libs.
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2017-06-24
Index: svgpp-1.2.3/src/CMakeLists.txt
===================================================================
--- svgpp-1.2.3.orig/src/CMakeLists.txt
+++ svgpp-1.2.3/src/CMakeLists.txt
@@ -4,10 +4,6 @@ project(svgpp)
find_package(Boost REQUIRED)
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
include_directories(
${Boost_INCLUDE_DIRS}
)
@@ -22,6 +18,5 @@ if (MSVC)
)
endif()
-add_subdirectory(demo/render)
add_subdirectory(samples)
add_subdirectory(test)
Index: svgpp-1.2.3/src/test/CMakeLists.txt
===================================================================
--- svgpp-1.2.3.orig/src/test/CMakeLists.txt
+++ svgpp-1.2.3/src/test/CMakeLists.txt
@@ -2,16 +2,16 @@ cmake_minimum_required (VERSION 2.8)
project(svgpp_test)
-set(GTEST_DIR ../../third_party/googletest/googletest)
-set(GMOCK_DIR ../../third_party/googletest/googlemock)
+set(GTEST_DIR /usr/src/googletest/googletest)
+set(GMOCK_DIR /usr/src/googletest/googlemock)
include_directories(
../../include
- ../../third_party
${GTEST_DIR}
${GTEST_DIR}/include
${GMOCK_DIR}
${GMOCK_DIR}/include
+ ../../third_party
)
if (MSVC)
10_fix_cmake.patch
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with sphinxdoc --buildsystem=cmake --sourcedirectory=src/
override_dh_auto_build:
dh_auto_build
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
#cd doc/sphinx/ ; cp conf.py.in conf.py; $(MAKE) man ; $(MAKE) html
endif
#!/bin/sh
# autopkgtest check: Build and run a program against alglib
# (C) 2013 Thomas Moulard
# (C) 2014 Anton Gladky
# Author: Thomas Moulard <thomas.moulard@gmail.com>
# Anton Gladky <gladk@debian.org>
set -e
WORKDIR=$(mktemp -d)
echo $WORKDIR
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cp -r examples $WORKDIR/
cp -r cmake/* $WORKDIR/examples/
sed -i '3 a\ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})' $WORKDIR/examples/CMakeLists.txt
sed -i -e 's/wslay_shared/wslay/g' $WORKDIR/examples/CMakeLists.txt
cd $WORKDIR
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=./../inst ./../examples
make
echo "build: OK"
[ -x echoserv ]
[ -x fork-echoserv ]
[ -x testclient ]
# timeout 3 ./echoserv 1234
# timeout 3 ./fork-echoserv 1234
# timeout 3 ./testclient localhost 1234
ls -l
echo "run: OK"
Tests: build1
Depends: libwslay-dev, build-essential, nettle-dev, cmake
version=3
opts=repacksuffix=+dfsg1,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \
https://github.com/svgpp/svgpp/tags .*/v(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment