[arch-commits] Commit in restinio/trunk (FindHTTP_Parser.cmake PKGBUILD)

Bruno Pagani archange at archlinux.org
Wed Apr 8 13:35:46 UTC 2020


    Date: Wednesday, April 8, 2020 @ 13:35:46
  Author: archange
Revision: 612603

upgpkg: restinio 0.6.5-1

Upstream fixed building with external http-parser.

Modified:
  restinio/trunk/PKGBUILD
Deleted:
  restinio/trunk/FindHTTP_Parser.cmake

-----------------------+
 FindHTTP_Parser.cmake |   20 --------------------
 PKGBUILD              |   16 +++++-----------
 2 files changed, 5 insertions(+), 31 deletions(-)

Deleted: FindHTTP_Parser.cmake
===================================================================
--- FindHTTP_Parser.cmake	2020-04-08 13:09:20 UTC (rev 612602)
+++ FindHTTP_Parser.cmake	2020-04-08 13:35:46 UTC (rev 612603)
@@ -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)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 13:09:20 UTC (rev 612602)
+++ PKGBUILD	2020-04-08 13:35:46 UTC (rev 612603)
@@ -1,7 +1,7 @@
 # Maintainer: Bruno Pagani <archange at archlinux.org>
 
 pkgname=restinio
-pkgver=0.6.4
+pkgver=0.6.5
 pkgrel=1
 pkgdesc="Header-only C++14 library that gives you an embedded HTTP/Websocket server"
 arch=(any)
@@ -9,16 +9,9 @@
 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')
+source=(https://github.com/Stiffstream/restinio/releases/download/v.${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+sha256sums=('aed7a4057a0c1e879ec5ed265ef30927e49d0e376e9c51b486d1e99a51bb6391')
 
-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 \
@@ -29,7 +22,8 @@
       -DRESTINIO_INSTALL_SAMPLES=OFF \
       -DRESTINIO_BENCH=OFF \
       -DRESTINIO_INSTALL_BENCHES=OFF \
-      -DRESTINIO_ALLOW_SOBJECTIZER=OFF
+      -DRESTINIO_ALLOW_SOBJECTIZER=OFF \
+      -DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON
   make -C build
 }
 



More information about the arch-commits mailing list