Skip to content

Commit

Permalink
docopt.cpp-0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Dec 21, 2016
1 parent c3eedd6 commit 32e7358
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 66 deletions.
41 changes: 24 additions & 17 deletions docopt.cpp/README
Expand Up @@ -3,40 +3,40 @@ docopt.cpp
docopt creates beautiful command-line interfaces

Runtime requirements:
cygwin-2.2.1-1
libdocopt0-0.6.1+git20150812-1bl1
libgcc1-4.9.3-1
libstdc++6-4.9.3-1
cygwin-2.6.1-1
libdocopt0-0.6.2-1bl1
libgcc1-5.4.0-1
libstdc++6-5.4.0-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.25-2
cmake-3.3.1-2
cygport-0.20.2-1
gcc-core-4.9.3-1
gcc-g++-4.9.3-1
make-4.1-1
binutils-2.25-4
cmake-3.6.2-1
cygport-0.23.0-1
gcc-core-5.4.0-1
gcc-g++-5.4.0-1
make-4.2.1-1

Canonical website:
https://github.com/docopt/docopt.cpp

Canonical download:
git://github.com/docopt/docopt.cpp.git
https://github.com/docopt/docopt.cpp/archive/v0.6.2.tar.gz

-------------------------------------------

Build instructions:
1. unpack docopt.cpp-0.6.1+git20150812-X-src.tar.xz
1. unpack docopt.cpp-0.6.2-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./docopt.cpp-0.6.1+git20150812-X.cygport all
% cygport ./docopt.cpp-0.6.2-X.cygport all

This will create:
/usr/src/docopt.cpp-0.6.1+git20150812-X-src.tar.xz
/usr/src/docopt.cpp-0.6.1+git20150812-X.tar.xz
/usr/src/libdocopt0-0.6.1+git20150812-X.tar.xz
/usr/src/libdocopt-devel-0.6.1+git20150812-X.tar.xz
/usr/src/docopt.cpp-0.6.2-X-src.tar.xz
/usr/src/docopt.cpp-0.6.2-X.tar.xz
/usr/src/libdocopt0-0.6.2-X.tar.xz
/usr/src/libdocopt-devel-0.6.2-X.tar.xz

-------------------------------------------

Expand All @@ -56,11 +56,18 @@ Files included in the binary package:
/usr/include/docopt/docopt_private.h
/usr/include/docopt/docopt_util.h
/usr/include/docopt/docopt_value.h
/usr/lib/cmake/docopt/docopt-config-version.cmake
/usr/lib/cmake/docopt/docopt-config.cmake
/usr/lib/cmake/docopt/docopt-targets-release.cmake
/usr/lib/cmake/docopt/docopt-targets.cmake
/usr/lib/libdocopt.dll.a

------------------

Port Notes:

----- version 0.6.2-1bl1 -----
Version bump.

----- version 0.6.1+git20150812-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
47 changes: 0 additions & 47 deletions docopt.cpp/docopt.cpp-0.6.1+git20150812-1bl1.src.patch

This file was deleted.

@@ -1,19 +1,24 @@
HOMEPAGE="https://github.com/docopt/${PN}"
GIT_URI="git://github.com/docopt/${PN}.git"
SRC_URI="https://github.com/docopt/${PN}/archive/v${PV}.tar.gz"

CATEGORY="Libs"
SUMMARY="C++11 port of docopt"
DESCRIPTION="docopt creates beautiful command-line interfaces"

inherit cmake
inherit git

CYGCMAKE_ARGS="
-DWITH_TESTS:BOOL=ON
-DWITH_EXAMPLE:BOOL=ON
-DWITH_STATIC:BOOL=OFF
"

src_test()
{
cd ${B}
./run_tests
}

DOCS="
LICENSE-*
README.rst
Expand Down
25 changes: 25 additions & 0 deletions docopt.cpp/docopt.cpp-0.6.2-1bl1.src.patch
@@ -0,0 +1,25 @@
--- origsrc/docopt.cpp-0.6.2/CMakeLists.txt 2016-12-03 04:12:44.000000000 +0900
+++ src/docopt.cpp-0.6.2/CMakeLists.txt 2016-12-21 17:31:22.547949000 +0900
@@ -9,6 +9,7 @@ include(GNUInstallDirs)
option(WITH_TESTS "Build tests." OFF)
option(WITH_EXAMPLE "Build example." OFF)
option(USE_BOOST_REGEX "Replace std::regex with Boost.Regex" OFF)
+option(WITH_STATIC "Build static." OFF)

#============================================================================
# Internal compiler options
@@ -118,10 +119,13 @@ endif()
set(export_name "docopt-targets")

# Runtime package
-install(TARGETS docopt EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
+install(TARGETS docopt EXPORT ${export_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+set_target_properties(docopt PROPERTIES SOVERSION 0)

# Development package
+if(WITH_STATIC)
install(TARGETS docopt_s EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
+endif()
install(FILES ${docopt_HEADERS} DESTINATION include/docopt)

# CMake Package

0 comments on commit 32e7358

Please sign in to comment.