From 000107f659383cdaef8bd6ecf8ee1be77f2efe48 Mon Sep 17 00:00:00 2001 From: cr6git Date: Sat, 19 Aug 2017 22:03:08 +0200 Subject: [PATCH] New package: gscope3 Closes: #7453 [via git-merge-pr] --- srcpkgs/gscope3/patches/musl.patch | 13 ++++++++++++ srcpkgs/gscope3/template | 32 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 srcpkgs/gscope3/patches/musl.patch create mode 100644 srcpkgs/gscope3/template diff --git a/srcpkgs/gscope3/patches/musl.patch b/srcpkgs/gscope3/patches/musl.patch new file mode 100644 index 00000000000..895f82fa382 --- /dev/null +++ b/srcpkgs/gscope3/patches/musl.patch @@ -0,0 +1,13 @@ +--- packages/gscope/src/auto_gen.c.bak 2017-08-19 00:44:22.000000000 +0200 ++++ packages/gscope/src/auto_gen.c 2017-08-20 18:23:02.247830491 +0200 +@@ -3,6 +3,10 @@ + #include "config.h" + #endif + ++#ifndef ACCESSPERMS ++# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) ++#endif ++ + #include + #include + #include diff --git a/srcpkgs/gscope3/template b/srcpkgs/gscope3/template new file mode 100644 index 00000000000..aaac349e582 --- /dev/null +++ b/srcpkgs/gscope3/template @@ -0,0 +1,32 @@ +# Template file for 'gscope3' +pkgname=gscope3 +version=3.10 +revision=1 +_release=v2.10+v3.10 +wrksrc="gscope-2.10-v3.10" +build_wrksrc="packages/gscope3" +build_style=gnu-configure +hostmakedepends="automake pkg-config" +makedepends="gtksourceview-devel" +maintainer="cr6git " +short_desc="Interactive source code browsing tool for C and other languages" +homepage="https://github.com/tefletch/gscope" +license="MIT" +distfiles="https://github.com/tefletch/gscope/archive/${_release}.tar.gz" +checksum=e530438a42998c3f4f61468f8d917377a22861f39c9b338e42c021a5efe925ed + +# configure: error: cannot run C compiled programs. +# If you meant to cross compile, use '--host'. +nocross=yes + +pre_configure() { + # automake looks for a COPYING file + cp ${wrksrc}/LICENSE COPYING + + ./autogen.sh --prefix=/usr +} + +post_install() { + vlicense ${wrksrc}/LICENSE +} +