Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
add libunibreak line breaking package
  • Loading branch information
jhs67 committed May 17, 2018
1 parent 765455a commit 49abb09
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Expand Up @@ -280,6 +280,7 @@ hunter_config(libmill VERSION 1.18)
hunter_config(libogg VERSION 1.3.2-cmake3)
hunter_config(libscrypt VERSION 1.21-p1)
hunter_config(libsodium VERSION 1.0.10)
hunter_config(libunibreak VERSION 4.0)
hunter_config(libuv VERSION 1.14.0-p1)
hunter_config(libxml2 VERSION 2.9.7)
hunter_config(libyuv VERSION 1514-p3)
Expand Down
36 changes: 36 additions & 0 deletions cmake/projects/libunibreak/hunter.cmake
@@ -0,0 +1,36 @@
# Copyright (c) 2016-2018, Ruslan Baratov
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)
include(hunter_cmake_args)
include(hunter_configuration_types)

hunter_add_version(
PACKAGE_NAME
libunibreak
VERSION
4.0
URL
"https://github.com/adah1972/libunibreak/releases/download/libunibreak_4_0/libunibreak-4.0.tar.gz"
SHA1
44c3294546c56c592d918dcaff14b3b5f96ca627
)

hunter_cmake_args(
libunibreak
CMAKE_ARGS
PKGCONFIG_EXPORT_TARGETS=libunibreak
)

hunter_configuration_types(libunibreak CONFIGURATION_TYPES Release)
hunter_pick_scheme(DEFAULT url_sha1_autotools)
hunter_cacheable(libunibreak)
hunter_download(PACKAGE_NAME libunibreak
PACKAGE_INTERNAL_DEPS_ID "1" # Increment for each new pull request
PACKAGE_UNRELOCATABLE_TEXT_FILES lib/pkgconfig/libunibreak.pc
)
19 changes: 19 additions & 0 deletions docs/packages/pkg/libunibreak.rst
@@ -0,0 +1,19 @@
.. spelling::

libunibreak

.. index:: unsorted ; libunibreak

.. _pkg.libunibreak:

libunibreak
===========

- `Official <https://github.com/adah1972/libunibreak>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/libunibreak/CMakeLists.txt>`__
- Added by `Jon Spencer <https://github.com/jhs67>`__ (`pr-N <https://github.com/ruslo/hunter/pull/N>`__)

.. literalinclude:: /../examples/libunibreak/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
18 changes: 18 additions & 0 deletions examples/libunibreak/CMakeLists.txt
@@ -0,0 +1,18 @@
# Copyright (c) 2016-2018, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-libunibreak)

# DOCUMENTATION_START {
hunter_add_package(libunibreak)
find_package(libunibreak CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC PkgConfig::libunibreak)
# DOCUMENTATION_END }
5 changes: 5 additions & 0 deletions examples/libunibreak/boo.cpp
@@ -0,0 +1,5 @@

#include "linebreak.h"

int main() {
}

0 comments on commit 49abb09

Please sign in to comment.