wyeb-git: import wyeb-0.0nb20181110 as wip/wyeb-git
authorYorick Hardy <yorickhardy@gmail.com>
Sat, 10 Nov 2018 23:05:30 +0000 (01:05 +0200)
committerYorick Hardy <yorickhardy@gmail.com>
Sat, 10 Nov 2018 23:05:30 +0000 (01:05 +0200)
With Your Editor Browser is a vim-like webkit2gtk browser
inspired by dwb and luakit.

Makefile
wyeb-git/DESCR [new file with mode: 0644]
wyeb-git/Makefile [new file with mode: 0644]
wyeb-git/PLIST [new file with mode: 0644]
wyeb-git/distinfo [new file with mode: 0644]
wyeb-git/patches/patch-main.c [new file with mode: 0644]

index 6e927684875e920b87d3841c370b67c549d82d8a..b34af42dc8b70049cd5c191cbf1562aa7ca37b48 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4770,6 +4770,7 @@ SUBDIR+=  wsmake
 SUBDIR+=       wvstreams
 SUBDIR+=       wxGTK-test
 SUBDIR+=       wxmaxima-git
+SUBDIR+=       wyeb-git
 SUBDIR+=       xace
 SUBDIR+=       xalan-c
 SUBDIR+=       xalan-c-1.10
diff --git a/wyeb-git/DESCR b/wyeb-git/DESCR
new file mode 100644 (file)
index 0000000..063a9a9
--- /dev/null
@@ -0,0 +1,2 @@
+With Your Editor Browser is a vim-like webkit2gtk browser
+inspired by dwb and luakit.
diff --git a/wyeb-git/Makefile b/wyeb-git/Makefile
new file mode 100644 (file)
index 0000000..310ef60
--- /dev/null
@@ -0,0 +1,30 @@
+# $NetBSD$
+
+DISTNAME=      wyeb-0.0
+CATEGORIES=    www
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jun7/}
+
+MAINTAINER=    pkgsrc-users@NetBSD.org
+HOMEPAGE=      http://wyeb.org/
+COMMENT=       Vim-like webkit2gtk browser
+LICENSE=       gnu-gpl-v3
+
+GIT_REPOSITORIES=      wyeb
+GIT_REPO.wyeb=         git://github.com/jun7/wyeb.git
+WRKSRC=                        ${WRKDIR}/wyeb
+
+BUILD_MAKE_FLAGS+=     EXTENSION_DIR=${PREFIX}/lib/wyebrowser
+INSTALLATION_DIRS+=    bin lib/wyebrowser share/applications share/pixmaps
+
+MAKE_FILE=     makefile
+USE_TOOLS+=    gmake
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/wyeb ${DESTDIR}${PREFIX}/bin/
+       ${INSTALL_LIB} ${WRKSRC}/ext.so ${DESTDIR}${PREFIX}/lib/wyebrowser
+       ${INSTALL_DATA} ${WRKSRC}/wyeb.desktop ${DESTDIR}${PREFIX}/share/applications/
+       ${INSTALL_DATA} ${WRKSRC}/wyeb.png ${DESTDIR}${PREFIX}/share/pixmaps/
+
+.include "../../www/webkit-gtk/buildlink3.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/wyeb-git/PLIST b/wyeb-git/PLIST
new file mode 100644 (file)
index 0000000..74917ac
--- /dev/null
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/wyeb
+lib/wyebrowser/ext.so
+share/applications/wyeb.desktop
+share/pixmaps/wyeb.png
diff --git a/wyeb-git/distinfo b/wyeb-git/distinfo
new file mode 100644 (file)
index 0000000..7ac62cd
--- /dev/null
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-main.c) = a829c08e71a538c4d10b90ab6efa0c40676d2bb6
diff --git a/wyeb-git/patches/patch-main.c b/wyeb-git/patches/patch-main.c
new file mode 100644 (file)
index 0000000..465a242
--- /dev/null
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Use the correct data type for modification time.
+
+--- main.c.orig        2018-11-10 14:18:57.000000000 +0000
++++ main.c
+@@ -2895,7 +2895,7 @@ static char *histdata(bool rest, bool al
+       int size = all ? 0 : confint("histviewsize");
+       int start = 0;
+-      __time_t mtime = 0;
++      time_t mtime = 0;
+       for (int j = 2; j > 0; j--) for (int i = histfnum - 1; i >= 0; i--)
+       {
+               if (!rest && size && num >= size) break;