# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= lagrange VERSION= 1.15.0 KEYWORDS= www VARIANTS= standard SDESC[standard]= Web Browser-like beautiful Gemini Client HOMEPAGE= https://github.com/skyjake/lagrange CONTACT= Michael_Reim[kraileth@elderlinux.org] DOWNLOAD_GROUPS= main SITES[main]= https://github.com/skyjake/lagrange/releases/download/v1.15.0/ DISTFILE[1]= lagrange-1.15.0.tar.gz:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= zip:single:standard BUILDRUN_DEPENDS= curl:primary:standard fribidi:single:standard harfbuzz:primary:standard libunistring:primary:standard mpg123:library:standard WebP:single:standard USES= cmake ncurses pcre pkgconfig zlib ssl:openssl11 desktop-utils:single SDL_COMPONENTS= sdl2 LICENSE= BSD2CLAUSE:single LICENSE_FILE= BSD2CLAUSE:{{WRKSRC}}/LICENSE.md LICENSE_SCHEME= solo FPC_EQUIVALENT= www/lagrange CMAKE_ARGS= -DENABLE_FRIBIDI:BOOL=ON -DENABLE_FRIBIDI_BUILD:BOOL=OFF -DENABLE_HARFBUZZ:BOOL=ON -DENABLE_HARFBUZZ_MINIMAL:BOOL=OFF -DENABLE_MPG123:BOOL=ON -DENABLE_WEBP:BOOL=ON post-install: ${INSTALL_PROGRAM} ${WRKSRC}/build-tui/clagrange ${STAGEDIR}${PREFIX}/bin/ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/clagrange ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lagrange post-build: (cd ${WRKSRC} && ./build-tui.sh) pre-configure: ${REINPLACE_CMD} -i'' -e "s|__PREFIX__|${PREFIX}|g" \ -e "s|__STAGEDIR__|${STAGEDIR}|" ${WRKSRC}/build-tui.sh # unclear why SDL_HINT_WINDOWS_DPI_AWARENESS is not defined; it's in SDL_hints.h # it's for windows only anywhy, just cut it out ${REINPLACE_CMD} -e '/SDL_HINT_WINDOWS_DPI_AWARENESS/d' ${WRKSRC}/src/main.c [FILE:776:descriptions/desc.single] Lagrange is a desktop GUI client for browsing Geminispace. It offers modern conveniences familiar from web browsers, such as smooth scrolling, inline image viewing, multiple tabs, visual themes, Unicode fonts, bookmarks, history, and page outlines. Some features: * Ability to optionally view images inside the gemtext document * Beautiful typography using Unicode fonts * Autogenerated page style and Unicode icon for each Gemini domain * Smart URL field suggestions: Search bookmarks, history, identities * Sidebar for page outline, managing bookmarks and identities as well as viewing history * Multiple tabs * Identity management: Create and use TLS client certificates * Audio playback: MP3, Ogg Vorbis, WAV * And more! Open about:help in the app, or see help.gmi [FILE:101:distinfo] 72dc249a2393dbfe531f0e472de979a5a26b24b9d4da1d845415d7a165fb231b 9922324 lagrange-1.15.0.tar.gz [FILE:235:manifests/plist.single] bin/ clagrange lagrange share/applications/fi.skyjake.Lagrange.desktop share/icons/hicolor/256x256/apps/fi.skyjake.Lagrange.png share/lagrange/resources.lgr share/man/man1/lagrange.1.gz share/metainfo/fi.skyjake.Lagrange.appdata.xml [FILE:2293:patches/patch-build-tui.sh] --- build-tui.sh.orig 2023-01-21 11:08:14 UTC +++ build-tui.sh @@ -14,25 +14,15 @@ # # You can customize the install directory prefix here and build type here: -INSTALL_PREFIX="/usr/local" +INSTALL_PREFIX="__PREFIX__" CMAKE_BUILD_TYPE="Release" +export PKG_CONFIG_PATH=/__PREFIX__/openssl11/lib/pkgconfig +export LDFLAGS="-L/__PREFIX__/openssl11/lib -Wl,-rpath,/__PREFIX__/openssl11/lib" echo "\nThis script will build and optionally install clagrange with" echo "statically linked the_Foundation and SEALCurses. First, let's configure" echo "the build.\n" -echo "Build type? [${CMAKE_BUILD_TYPE}]" -read INPUT -if [ "${INPUT}." != "." ]; then - CMAKE_BUILD_TYPE=${INPUT} -fi - -echo "Install prefix? [${INSTALL_PREFIX}]" -read INPUT -if [ "${INPUT}." != "." ]; then - INSTALL_PREFIX=${INPUT} -fi - if [ ! -d lib/sealcurses ]; then echo "'lib/sealcurses' not found. Clone with Git? [Yn]" read INPUT @@ -67,6 +57,7 @@ cmake ../../lib/the_Foundation -DCMAKE_B -DTFDN_STATIC_LIBRARY=YES \ -DTFDN_ENABLE_WEBREQUEST=NO \ -DTFDN_ENABLE_TESTS=NO \ + -DCMAKE_INSTALL_LIBDIR:STRING="lib" \ -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}" $* cmake --build . || exit 1 cmake --install . @@ -79,13 +70,13 @@ cmake ../../lib/sealcurses -DCMAKE_BUILD -DCMAKE_C_FLAGS_RELEASE=-O1 \ -DENABLE_SHARED=NO \ -Dthe_Foundation_DIR="${BUILD_DIR}/lib/cmake/the_Foundation" \ + -DCMAKE_INSTALL_LIBDIR:STRING="lib" \ -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}" $* cmake --build . || exit 1 cmake --install . cd .. export PKG_CONFIG_PATH="${BUILD_DIR}/lib/pkgconfig":${PKG_CONFIG_PATH} -LDFLAGS="`pkg-config --static --libs the_Foundation`" cmake .. \ -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \ -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ @@ -97,15 +88,11 @@ cmake .. \ -DENABLE_HARFBUZZ=NO \ -DENABLE_POPUP_MENUS=NO \ -DENABLE_IDLE_SLEEP=NO \ + -DCMAKE_SKIP_RPATH:BOOL=TRUE \ -Dthe_Foundation_DIR="${BUILD_DIR}/lib/cmake/the_Foundation" \ $* cmake --build . || exit 1 echo "-----" echo "clagrange and resources.lgr can be found in 'build-tui'." -echo "Do you want to install them to ${INSTALL_PREFIX}? (sudo) [yN]" -read CONFIRMED -if [ "${CONFIRMED}" = "y" ]; then - sudo cmake --install . - exit -fi +exit [FILE:480:patches/patch-src_app.c] --- src/app.c.orig 2023-01-21 11:08:14 UTC +++ src/app.c @@ -729,7 +729,7 @@ static iBool loadState_App_(iApp *d) { // printf("[State] '%.4s' split:%d state:%x\n", magic, splitMode, winState); #if defined (iPlatformTerminal) /* Terminal only supports one window. */ - win = d->window; + win = as_MainWindow(d->window); #else if (numWins == 1) { win = as_MainWindow(d->window); [FILE:341:patches/patch-src_ui_text__terminal.c] --- src/ui/text_terminal.c.orig 2023-01-21 11:08:14 UTC +++ src/ui/text_terminal.c @@ -206,6 +206,6 @@ static float nextTabStop_Font_(const iFo #include "text_simple.c" -iRect run_Font(iBaseFont *font, const iRunArgs *args) { +void run_Font(iBaseFont *font, const iRunArgs *args) { return runSimple_Font_((iFont *) font, args); }