pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add lagrange.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Sat Mar 6 22:44:55 2021 +0100
Changeset:	f25779480ee1ae42c5b205666d0e44d91f9414c1

Modified Files:
	Makefile
Added Files:
	lagrange/DESCR
	lagrange/Makefile
	lagrange/PLIST
	lagrange/TODO
	lagrange/distinfo
	lagrange/options.mk
	lagrange/patches/patch-lib_the__Foundation_src_platform_posix_process.c

Log Message:
Add lagrange.

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.

Like Gemini, Lagrange has been designed with minimalism in mind. It depends
on a small number of essential libraries. It is written in C and uses SDL
for hardware-accelerated graphics. OpenSSL is used for secure communications.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f25779480ee1ae42c5b205666d0e44d91f9414c1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 lagrange/DESCR                                     |  8 ++++++++
 lagrange/Makefile                                  | 23 ++++++++++++++++++++++
 lagrange/PLIST                                     |  6 ++++++
 lagrange/TODO                                      |  3 +++
 lagrange/distinfo                                  |  7 +++++++
 lagrange/options.mk                                | 21 ++++++++++++++++++++
 ...ib_the__Foundation_src_platform_posix_process.c | 14 +++++++++++++
 8 files changed, 83 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9336c92dfe..f26afe08b2 100644
--- a/Makefile
+++ b/Makefile
@@ -1921,6 +1921,7 @@ SUBDIR+=	kwrited
 SUBDIR+=	kyototycoon
 SUBDIR+=	kyra2
 SUBDIR+=	l2tpd
+SUBDIR+=	lagrange
 SUBDIR+=	lambertw
 SUBDIR+=	lander
 SUBDIR+=	lanq
diff --git a/lagrange/DESCR b/lagrange/DESCR
new file mode 100644
index 0000000000..8851b2c66a
--- /dev/null
+++ b/lagrange/DESCR
@@ -0,0 +1,8 @@
+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.
+
+Like Gemini, Lagrange has been designed with minimalism in mind. It depends
+on a small number of essential libraries. It is written in C and uses SDL
+for hardware-accelerated graphics. OpenSSL is used for secure communications.
diff --git a/lagrange/Makefile b/lagrange/Makefile
new file mode 100644
index 0000000000..330e0040cd
--- /dev/null
+++ b/lagrange/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	lagrange-1.2.1
+CATEGORIES=	net
+MASTER_SITES=	https://git.skyjake.fi/skyjake/lagrange/releases/download/v${PKGVERSION_NOREV}/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://gmi.skyjake.fi/lagrange/
+COMMENT=	Desktop GUI client for browsing Gemini
+LICENSE=	2-clause-bsd
+
+USE_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+
+.include "options.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../textproc/libunistring/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lagrange/PLIST b/lagrange/PLIST
new file mode 100644
index 0000000000..b697af4469
--- /dev/null
+++ b/lagrange/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/lagrange
+share/applications/fi.skyjake.Lagrange.desktop
+share/icons/hicolor/256x256/apps/fi.skyjake.Lagrange.png
+share/lagrange/resources.lgr
+share/metainfo/fi.skyjake.Lagrange.appdata.xml
diff --git a/lagrange/TODO b/lagrange/TODO
new file mode 100644
index 0000000000..56afd2aee7
--- /dev/null
+++ b/lagrange/TODO
@@ -0,0 +1,3 @@
+Predictably segfaults about 40% of the time on startup on NetBSD/amd64.
+
+It's being discussed with upstream.
diff --git a/lagrange/distinfo b/lagrange/distinfo
new file mode 100644
index 0000000000..dc8d6d3224
--- /dev/null
+++ b/lagrange/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (lagrange-1.2.1.tar.gz) = 2d57b12ca6d1b26ad39783ed1ca72e4fc7c57f42
+RMD160 (lagrange-1.2.1.tar.gz) = 6f6040173be74af346e6629db50eb8b1b29a76cb
+SHA512 (lagrange-1.2.1.tar.gz) = 7356d7e424492dfa6928d3328cf43d3a12289abe022efc1c63434968d73e8465d3547311199e8344b4f4ff24bc2adc29d03f2cac15cfe197d81f9e710dcb7d02
+Size (lagrange-1.2.1.tar.gz) = 14353246 bytes
+SHA1 (patch-lib_the__Foundation_src_platform_posix_process.c) = 831e5abc9f0f06e9be51454a2c86a09b7797f19f
diff --git a/lagrange/options.mk b/lagrange/options.mk
new file mode 100644
index 0000000000..6356d868fd
--- /dev/null
+++ b/lagrange/options.mk
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2019/06/10 12:41:23 nia Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.lagrange
+
+PKG_SUPPORTED_OPTIONS+=	mpg123 opengl
+PKG_SUGGESTED_OPTIONS+=	mpg123 opengl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmpg123)
+.include "../../audio/mpg123/buildlink3.mk"
+CONFIGURE_ARGS+=	-DENABLE_MPG123=ON
+.else
+CONFIGURE_ARGS+=	-DENABLE_MPG123=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Mopengl)
+CONFIGURE_ARGS+=	-DENABLE_X11_SWRENDER=OFF
+.else
+CONFIGURE_ARGS+=	-DENABLE_X11_SWRENDER=ON
+.endif
diff --git a/lagrange/patches/patch-lib_the__Foundation_src_platform_posix_process.c b/lagrange/patches/patch-lib_the__Foundation_src_platform_posix_process.c
new file mode 100644
index 0000000000..c89dcb37f3
--- /dev/null
+++ b/lagrange/patches/patch-lib_the__Foundation_src_platform_posix_process.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Add missing <sys/select.h> inclusion.
+
+--- lib/the_Foundation/src/platform/posix/process.c.orig	2021-02-27 17:21:33.000000000 +0000
++++ lib/the_Foundation/src/platform/posix/process.c
+@@ -38,6 +38,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
+ #include <poll.h>
+ #include <unistd.h>
+ #include <signal.h>
++#include <sys/select.h>
+ #include <sys/wait.h>
+ 
+ struct Impl_Process {


Home | Main Index | Thread Index | Old Index