[arch-commits] Commit in restinio/repos/community-any (3 files)
Bruno Pagani
archange at archlinux.org
Wed Apr 8 13:35:54 UTC 2020
Date: Wednesday, April 8, 2020 @ 13:35:53
Author: archange
Revision: 612604
archrelease: copy trunk to community-any
Added:
restinio/repos/community-any/PKGBUILD
(from rev 612603, restinio/trunk/PKGBUILD)
Deleted:
restinio/repos/community-any/FindHTTP_Parser.cmake
restinio/repos/community-any/PKGBUILD
-----------------------+
FindHTTP_Parser.cmake | 20 -------------
PKGBUILD | 72 ++++++++++++++++++++++--------------------------
2 files changed, 33 insertions(+), 59 deletions(-)
Deleted: FindHTTP_Parser.cmake
===================================================================
--- FindHTTP_Parser.cmake 2020-04-08 13:35:46 UTC (rev 612603)
+++ FindHTTP_Parser.cmake 2020-04-08 13:35:53 UTC (rev 612604)
@@ -1,20 +0,0 @@
-# Look for the header file.
-FIND_PATH(HTTP_PARSER_INCLUDE_DIR NAMES http_parser.h)
-
-# Look for the library.
-FIND_LIBRARY(HTTP_PARSER_LIBRARY NAMES http_parser)
-
-# Handle the QUIETLY and REQUIRED arguments and set HTTP_PARSER_FOUND to TRUE if all listed variables are TRUE.
-INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(HTTP_Parser DEFAULT_MSG HTTP_PARSER_LIBRARY HTTP_PARSER_INCLUDE_DIR)
-
-# Copy the results to the output variables.
-IF(HTTP_PARSER_FOUND)
- SET(HTTP_PARSER_LIBRARIES ${HTTP_PARSER_LIBRARY})
- SET(HTTP_PARSER_INCLUDE_DIRS ${HTTP_PARSER_INCLUDE_DIR})
-ELSE(HTTP_PARSER_FOUND)
- SET(HTTP_PARSER_LIBRARIES)
- SET(HTTP_PARSER_INCLUDE_DIRS)
-ENDIF(HTTP_PARSER_FOUND)
-
-MARK_AS_ADVANCED(HTTP_PARSER_INCLUDE_DIRS HTTP_PARSER_LIBRARIES)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-08 13:35:46 UTC (rev 612603)
+++ PKGBUILD 2020-04-08 13:35:53 UTC (rev 612604)
@@ -1,39 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=restinio
-pkgver=0.6.4
-pkgrel=1
-pkgdesc="Header-only C++14 library that gives you an embedded HTTP/Websocket server"
-arch=(any)
-url="https://stiffstream.com/en/products/restinio.html"
-license=(BSD)
-depends=(asio http-parser fmt)
-makedepends=(cmake gcc openssl zlib pcre pcre2 boost)
-source=(https://github.com/Stiffstream/restinio/releases/download/v.${pkgver}/${pkgname}-${pkgver}.tar.bz2
- FindHTTP_Parser.cmake)
-sha256sums=('e585426eedb8e5e6e7d75e02a49f9c2fc644433826ffda2eb7361aa110a17e05'
- '3b8f066d44679fcbfc8220c4c4b0ce69c2d49adbff8a05a7e59f9f2f71012b12')
-
-prepare() {
- cp FindHTTP_Parser.cmake ${pkgname}-${pkgver}/dev/cmake/modules/
- sed -i 's|unofficial-http-parser CONFIG|HTTP_Parser|g' ${pkgname}-${pkgver}/dev/CMakeLists.txt
-}
-
-build() {
- cmake -B build -S ${pkgname}-${pkgver}/dev/ \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DRESTINIO_FIND_DEPS=ON \
- -DRESTINIO_TEST=OFF \
- -DRESTINIO_SAMPLE=OFF \
- -DRESTINIO_INSTALL_SAMPLES=OFF \
- -DRESTINIO_BENCH=OFF \
- -DRESTINIO_INSTALL_BENCHES=OFF \
- -DRESTINIO_ALLOW_SOBJECTIZER=OFF
- make -C build
-}
-
-package() {
- make -C build DESTDIR="${pkgdir}" install
- install -Dm644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}
Copied: restinio/repos/community-any/PKGBUILD (from rev 612603, restinio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-08 13:35:53 UTC (rev 612604)
@@ -0,0 +1,33 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=restinio
+pkgver=0.6.5
+pkgrel=1
+pkgdesc="Header-only C++14 library that gives you an embedded HTTP/Websocket server"
+arch=(any)
+url="https://stiffstream.com/en/products/restinio.html"
+license=(BSD)
+depends=(asio http-parser fmt)
+makedepends=(cmake gcc openssl zlib pcre pcre2 boost)
+source=(https://github.com/Stiffstream/restinio/releases/download/v.${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+sha256sums=('aed7a4057a0c1e879ec5ed265ef30927e49d0e376e9c51b486d1e99a51bb6391')
+
+build() {
+ cmake -B build -S ${pkgname}-${pkgver}/dev/ \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DRESTINIO_FIND_DEPS=ON \
+ -DRESTINIO_TEST=OFF \
+ -DRESTINIO_SAMPLE=OFF \
+ -DRESTINIO_INSTALL_SAMPLES=OFF \
+ -DRESTINIO_BENCH=OFF \
+ -DRESTINIO_INSTALL_BENCHES=OFF \
+ -DRESTINIO_ALLOW_SOBJECTIZER=OFF \
+ -DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list