diff options
-rw-r--r-- | app-editors/grief/Manifest | 6 | ||||
-rw-r--r-- | app-editors/grief/files/bfd_config.patch | 13 | ||||
-rw-r--r-- | app-editors/grief/files/clocks_per_second.patch | 29 | ||||
-rw-r--r-- | app-editors/grief/files/disable-hlpdoc.patch | 12 | ||||
-rwxr-xr-x | app-editors/grief/files/generate-libchartable.sh | 21 | ||||
-rw-r--r-- | app-editors/grief/grief-9999.ebuild | 55 |
6 files changed, 136 insertions, 0 deletions
diff --git a/app-editors/grief/Manifest b/app-editors/grief/Manifest new file mode 100644 index 0000000..4e9539b --- /dev/null +++ b/app-editors/grief/Manifest @@ -0,0 +1,6 @@ +AUX bfd_config.patch 482 SHA256 097d348ef11c4c439ca4b5c8bedd0af68cdc01bfdd6734bc14fccc44ad9f0127 SHA512 12ef76e223161fd90417a6ffbc2e923ae8947e05431df249a6fe03cbc2b8c3cb3feb38400cf9dc41ec5906ec1f1636282417dedf933cc4d4e7f75c04eba1335d WHIRLPOOL a75f07b81795c33af8286bca5b9fe0a14a3fdb690ce8807a4f66b31229c7ff3d61abc74c13ddad2130bfb1935505f81a64194142cad737b3dd20a287f72527e6 +AUX clocks_per_second.patch 873 SHA256 46437fb63401a7360f7b2f21a17290f9f1afbb6b07aa71faef2ba807df58e57d SHA512 f242676078f1270a2758cdb9e1c86a9ba5b4c052cb2c12deba3d4606250786aee7117db024367b3ed92f1c6ceae0eff5f39ae00d2fc83bdd7f72b89fb4df8bcd WHIRLPOOL 7e796cc4dfa18d65c2c3abe7abf52692ae4de73d11b5619de37e1f02a4efe7d28e76adba33e395a79845c57fe92969b12d154d606ebcd7cc21c857c233290619 +AUX disable-hlpdoc.patch 282 SHA256 54ec617932b0602febf6d017c6a297d8e335938a8b1f829927cf617fd105bf57 SHA512 365f7c8af0aefccfcb0f837e3c2d11d0a7216291d14e3f6b3ba356d7275b8794d93614c5c9584e25f3ac66bc617b359f68a2db3ed0c43bac72a50319e20d5c0e WHIRLPOOL aa80a8a29c113a935fa31039960c388796bd2e864aa97286b69e1ae9ace382211cd87011494cc9f5a6b43b48c3f7a148ca76a8ccc5f4f666d135fdcb9ab586bf +AUX generate-libchartable.sh 583 SHA256 18faa380e679dfe19a8f7a6354bae24e5d82b5eb94ccf5e30f92f245e08d3a0d SHA512 c71a7a62486daffac6708a95f675daed55f00832c530be183bfe3c7627e4b57fda3cc73ea553f9d73e405249e599bc8fd23fe2dc9d44033ec316acd603297044 WHIRLPOOL 3b6fc7e822a4384725f15bb71fc521cca87cd4add9db6afe55f421fc6380449f2b2c0aa5d95212d209cfc96ef56402f0d6f52901de72bf74cd00a1b4d8ac7fb6 +DIST grief-libchartable-1.0.tar.xz 5697524 SHA256 a0f945db298b42f962b24dd25e945372604551ec518898826fd7c674558f7f2a SHA512 6be2d706b01cd055b005bcb5ba9295be041bff9ab24ba2ba11f85b347fed2f72368e64888c1896d117a6058ed5f867141bf6692fa47e37963a6aa02e50e72827 WHIRLPOOL 634c0b458673904b8a0df1a9b17bdb530482122f1684aa5682edd08226e0e4b46a28144fc4d21f96d0d54220ec5c039b9999ce3757b7a7bedddd2c4990635a16 +EBUILD grief-9999.ebuild 972 SHA256 e531201cd269fbaa782bfc900bc64e81c128bca765ddc7d1eaf26221b21a6e17 SHA512 24a57000f41780515f64cb299c7a6ff54364bb27cbae36e99710ef43b478653dec6816d65657c0772ffbe9c8cf9f8ff2f4b8187247a8a4b8b27e865ad007545a WHIRLPOOL c141cf11b610d5ec0182c108cd9e90fca5187b6522a5ac506f2978cf00569aa1d2d65f1529277d75cc8df36c5afe42428adca1111cd6b30ab4e5682485bc1302 diff --git a/app-editors/grief/files/bfd_config.patch b/app-editors/grief/files/bfd_config.patch new file mode 100644 index 0000000..8ab6f0b --- /dev/null +++ b/app-editors/grief/files/bfd_config.patch @@ -0,0 +1,13 @@ +diff --git a/libmisc/edbt_linux.c b/libmisc/edbt_linux.c +index ec10552..2deb7ce 100644 +--- a/libmisc/edbt_linux.c ++++ b/libmisc/edbt_linux.c +@@ -48,6 +48,8 @@ __CIDENT_RCSID(gr_edbt_linux_c,"$Id: edbt_linux.c,v 1.8 2015/02/19 00:17:11 ayou + #include <ucontext.h> + #if defined(HAVE_BFD_H) + #define EDBT_DEMANGLE ++#define PACKAGE "GRIEF" ++#define PACKAGE_VERSION "3.2.0" + #include <bfd.h> /* libbfd, binutils-dev */ + #endif + #if defined(HAVE_LIBIBERTY) diff --git a/app-editors/grief/files/clocks_per_second.patch b/app-editors/grief/files/clocks_per_second.patch new file mode 100644 index 0000000..421c1ef --- /dev/null +++ b/app-editors/grief/files/clocks_per_second.patch @@ -0,0 +1,29 @@ +diff --git a/gr/m_system.c b/gr/m_system.c +index 28ea92b..09afacf 100644 +--- a/gr/m_system.c ++++ b/gr/m_system.c +@@ -317,16 +317,15 @@ inq_clock(void) /* (void) */ + accint_t value; + + #if !defined(CLOCKS_PER_SEC) +-#error inq_clock: CLOCK_PER_SEC is undefined ... +- +-#elif (1000000 == CLOCKS_PER_SEC) /* POSIX standard */ +- value = clock(); +- +-#elif (1000 == CLOCKS_PER_SEC) /* WIN32/DOS */ +- value = (clock() * 1000); +- ++#error inq_clock: CLOCKS_PER_SEC is undefined ... + #else +-#error inq_clock: unsupported CLOCK_PER_SEC configuration ... ++ if (1000000 == CLOCKS_PER_SEC) /* POSIX standard */ ++ value = clock(); ++ else if (1000 == CLOCKS_PER_SEC) /* WIN32/DOS */ ++ value = (clock() * 1000); ++ else { ++ /* die here */ ++ } + #endif + + acc_assign_int(value); diff --git a/app-editors/grief/files/disable-hlpdoc.patch b/app-editors/grief/files/disable-hlpdoc.patch new file mode 100644 index 0000000..f3fe3df --- /dev/null +++ b/app-editors/grief/files/disable-hlpdoc.patch @@ -0,0 +1,12 @@ +diff --git a/Makefile.in b/Makefile.in +index 6d5775f..4f4e4d7 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -175,7 +175,6 @@ LIBS+=\ + $(LW)bsddb$(A) + + all: dirs buildinfo libs bins +- $(MAKE) -C $(D_HLPDOC) $(MAKEFLAGS) + $(MAKE) -C $(D_MACSRC) $(MAKEFLAGS) + + # Build support diff --git a/app-editors/grief/files/generate-libchartable.sh b/app-editors/grief/files/generate-libchartable.sh new file mode 100755 index 0000000..c1aea0d --- /dev/null +++ b/app-editors/grief/files/generate-libchartable.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +TARGET=grief-libchartable-1.0.tar.xz + +mkdir data +cd data + +wget -r -nv -nH -e robots=off --cut-dirs=1 --no-parent --reject "index.html.*" http://ftp.unicode.org/Public/MAPPINGS/ + +#wget -nv http://ftp.unicode.org/Public/UNIDATA/Unihan.zip +wget -nv http://ftp.unicode.org/Public/UNIDATA/UCD.zip +#wget -nv http://www.cl.cam.ac.uk/~mgk25/download/uniset.tar.gz +#wget -nv http://de.selfhtml.org/html/referenz/zeichen.htm + +echo "++ do not delete, managed content ++" > .created + +tar -C .. cvJf $TARGET data + +echo "Now copy $TARGET to the portage distfiles directory" + +exit 0 diff --git a/app-editors/grief/grief-9999.ebuild b/app-editors/grief/grief-9999.ebuild new file mode 100644 index 0000000..8949374 --- /dev/null +++ b/app-editors/grief/grief-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +inherit eutils git-r3 + +DESCRIPTION="Programmers console editor/a BRIEF clone" +HOMEPAGE="https://sourceforge.net/projects/grief/" +EGIT_REPO_URI="git://git.code.sf.net/p/grief/code" +SRC_URI="grief-libchartable-1.0.tar.xz" + +LICENSE="QPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="fetch" + +DEPEND=" + app-arch/unzip + dev-lang/perl + sys-libs/binutils-libs +" +RDEPEND="${DEPEND}" + +pkg_nofetch() { + einfo "Please generate libchartable data" + einfo "using ${FILESDIR}/generate-libchartable.sh" + einfo "and move the resulting tarball into ${DISTDIR}" +} + +src_prepare() { + (cd "${S}"/libchartable && unpack ${A}) + epatch "${FILESDIR}"/bfd_config.patch + epatch "${FILESDIR}"/clocks_per_second.patch + epatch "${FILESDIR}"/disable-hlpdoc.patch + epatch_user +} + +src_configure() { + # this needs work: + # with ED grief looks in the wrong places for macros (and installs to /usr/share/macros instead of /usr/share/grief/macros) + # without it, there are sandbox violations + ./configure_new --prefix=${ED}/usr +} + +src_compile() { + emake -j1 +} + +pkg_postinst() { + elog "For the moment documentation is online only at: http://grief.sourceforge.net/" + elog "export GRPATH=/usr/share/macros to allow grief startup" +} |