lgogdownloader, new recipe (#9662)

This commit is contained in:
Schrijvers Luc
2023-10-24 06:07:24 +00:00
committed by GitHub
parent fdadbbac96
commit bc1a1fa8c9
3 changed files with 119 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
SUMMARY="GOG Downloader for Linux"
DESCRIPTION="LGOGDownloader is open source downloader to GOG.com for Linux users using the same \
API as the official GOGDownloader"
HOMEPAGE="https://sites.google.com/site/gogdownloader/"
COPYRIGHT="2004 Sam Hocevar"
LICENSE="WTFPL"
REVISION="1"
SOURCE_URI="https://github.com/Sude-/lgogdownloader/releases/download/v3.11/lgogdownloader-3.11.tar.gz"
CHECKSUM_SHA256="d8d015cce6e002876305517367dc006c332e4d492263173b58bfe5a94b057b09"
PATCHES="lgogdownloader-$portVersion.patchset"
ARCHITECTURES="all"
PROVIDES="
lgogdownloader$secondaryArchSuffix = $portVersion
cmd:lgogdownloader = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_date_time$secondaryArchSuffix
lib:libboost_filesystem$secondaryArchSuffix
lib:libboost_iostreams$secondaryArchSuffix
lib:libboost_program_options$secondaryArchSuffix
lib:libboost_regex$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libcss_parser$secondaryArchSuffix
lib:libcss_parser_pp$secondaryArchSuffix
lib:libhtmlcxx$secondaryArchSuffix
lib:libjsoncpp$secondaryArchSuffix
# lib:libQt5Core$secondaryArchSuffix
# lib:libQt5Gui$secondaryArchSuffix
# lib:libQt5Network$secondaryArchSuffix
# lib:libQt5Positioning$secondaryArchSuffix
# lib:libQt5PrintSupport$secondaryArchSuffix
# lib:libQt5Qml$secondaryArchSuffix
# lib:libQt5Quick$secondaryArchSuffix
# lib:libQt5WebChannel$secondaryArchSuffix
# lib:libQt5WebEngine$secondaryArchSuffix
# lib:libQt5Widgets$secondaryArchSuffix
lib:librhash$secondaryArchSuffix
lib:libtinyxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_date_time$secondaryArchSuffix >= 1.70.0
devel:libboost_system$secondaryArchSuffix >= 1.70.0
devel:libboost_iostreams$secondaryArchSuffix >= 1.70.0
devel:libboost_program_options$secondaryArchSuffix >= 1.70.0
devel:libboost_regex$secondaryArchSuffix >= 1.70.0
devel:libboost_system$secondaryArchSuffix >= 1.70.0
devel:libcurl$secondaryArchSuffix
devel:libhtmlcxx$secondaryArchSuffix
devel:libjsoncpp$secondaryArchSuffix
# devel:libQt5WebEngine$secondaryArchSuffix
# devel:libQt5Widgets$secondaryArchSuffix
devel:librhash$secondaryArchSuffix
devel:libtinyxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:gzip
cmd:help2man
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs # \
# -DUSE_QT_GUI=ON
make -C build $jobArgs
}
INSTALL()
{
make -C build install
}

View File

@@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

View File

@@ -0,0 +1,22 @@
From f00c37aa618ff8b2a7753a5d7863dcd3db0eb6b9 Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Sat, 21 Oct 2023 21:30:55 +0200
Subject: Fix for: help2man: can't get `--help' info (for manpage)
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index 3225653..f9aa17a 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -11,7 +11,7 @@ if(HELP2MAN AND GZIP)
set(MAN_FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1.gz")
add_custom_command(
OUTPUT ${MAN_FILE}
- COMMAND ${HELP2MAN} -N -i ${H2M_FILE} -o ${MAN_PAGE} "\"${PROJECT_BINARY_DIR}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}\""
+ COMMAND ${HELP2MAN} --no-discard-stderr -N -i ${H2M_FILE} -o ${MAN_PAGE} "\"${PROJECT_BINARY_DIR}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}\""
COMMAND ${GZIP} -f -9 ${MAN_PAGE}
MAIN_DEPENDENCY ${H2M_FILE}
COMMENT "Building man page"
--
2.42.0