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

Commit

Permalink
Merge pull request #1838 from FredrikAppelros/pr.arabica
Browse files Browse the repository at this point in the history
Add 'arabica' package
  • Loading branch information
ruslo authored Apr 24, 2019
2 parents e2acd28 + b47ae01 commit b47ffaa
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ hunter_default_version(android_sdk_platform_packer VERSION 1.0.0)
hunter_default_version(android_sdk_platform_tools_packer VERSION 1.0.0)
hunter_default_version(android_sdk_tools_packer VERSION 1.0.3)
hunter_default_version(android_support_repository_packer VERSION 1.0.0)
hunter_default_version(arabica VERSION 0.0.0-a202766-p0)
hunter_default_version(autobahn-cpp VERSION 0.2.0)
hunter_default_version(autoutils VERSION 0.3.0)
hunter_default_version(aws-c-common VERSION 0.2.1-p0)
Expand Down
32 changes: 32 additions & 0 deletions cmake/projects/arabica/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

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

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

hunter_add_version(
PACKAGE_NAME
arabica
VERSION
0.0.0-a202766-p0
URL
"https://github.com/hunter-packages/arabica/archive/v0.0.0-a202766-p0.tar.gz"
SHA1
b922f397223d54f7e6c646a862b3b4d93b0b9227
)

hunter_cmake_args(
arabica
CMAKE_ARGS
BUILD_ARABICA_EXAMPLES=OFF
ARABICA_XML_BACKEND=USE_EXPAT
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(arabica)
hunter_download(PACKAGE_NAME arabica)
21 changes: 21 additions & 0 deletions docs/packages/pkg/arabica.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. spelling::

arabica

.. index::
single: xml ; arabica

.. _pkg.arabica:

arabica
=======

- `Official <https://github.com/jezhiggins/arabica>`__
- `Hunterized <https://github.com/hunter-packages/arabica>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/arabica/CMakeLists.txt>`__
- Added by `Fredrik Appelros <https://github.com/FredrikAppelros>`__ (`pr-1838 <https://github.com/ruslo/hunter/pull/1838>`__)

.. literalinclude:: /../examples/arabica/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
18 changes: 18 additions & 0 deletions examples/arabica/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.2)

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

project(download-arabica)

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

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC arabica::arabica)
# DOCUMENTATION_END }
4 changes: 4 additions & 0 deletions examples/arabica/boo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <arabica/SAX/XMLReader.hpp>

int main() {
}

0 comments on commit b47ffaa

Please sign in to comment.