summaryrefslogtreecommitdiff
path: root/user/w3m
diff options
context:
space:
mode:
Diffstat (limited to 'user/w3m')
-rw-r--r--user/w3m/APKBUILD44
-rw-r--r--user/w3m/use-modern-gc.patch12
2 files changed, 56 insertions, 0 deletions
diff --git a/user/w3m/APKBUILD b/user/w3m/APKBUILD
new file mode 100644
index 000000000..1e4ed29b2
--- /dev/null
+++ b/user/w3m/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=w3m
+pkgver=0.5.3
+pkgrel=0
+pkgdesc="Text-based Web browser"
+url="http://w3m.sourceforge.net/"
+arch="all"
+options="!check" # No test suite.
+license="MIT AND X11"
+depends="compface"
+makedepends="compface-dev gc-dev gdk-pixbuf-dev glib-dev gtk+2.0-dev imlib2-dev
+ libbsd-dev libx11-dev ncurses-dev openssl-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://downloads.sourceforge.net/w3m/w3m-$pkgver.tar.gz
+ use-modern-gc.patch
+ "
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ LIBS="-lX11 -ltinfo" ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make funcname.tab
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="43508c76d07b4d8f19c19f975c0b870aeb94abf0744b6128ee01c759d4e409a8b57bc866baeaf990f309ff73e9a7b02ca455d272b1dd0a93fafb8c72b1fe6d14 w3m-0.5.3.tar.gz
+d43f99e2277b0daabb6080b06b4e06af7a1b679da9203bad782ef57e137ca18d27b85ef7a0691aeb293bd3f6f00bd556d1fe021fed0b725b5b78b376671f1494 use-modern-gc.patch"
diff --git a/user/w3m/use-modern-gc.patch b/user/w3m/use-modern-gc.patch
new file mode 100644
index 000000000..a30d642bb
--- /dev/null
+++ b/user/w3m/use-modern-gc.patch
@@ -0,0 +1,12 @@
+--- w3m-0.5.3/main.c.old 2011-01-04 09:42:19.000000000 +0000
++++ w3m-0.5.3/main.c 2019-01-18 20:12:22.570000000 +0000
+@@ -833,7 +833,8 @@
+ mySignal(SIGPIPE, SigPipe);
+ #endif
+
+- orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
++ orig_GC_warn_proc = GC_get_warn_proc();
++ GC_set_warn_proc(wrap_GC_warn_proc);
+ err_msg = Strnew();
+ if (load_argc == 0) {
+ /* no URL specified */