This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add libunibreak line breaking package
- Loading branch information
Showing
5 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
#include "linebreak.h" | ||
|
||
int main() { | ||
} |