aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-06-06 16:09:12 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-06-11 17:23:11 +0200
commitead768b68d112a70320ab8ac31707467accb1af5 (patch)
tree0811152b29edc270b40ddffdfbbf01af30fb4148 /app-dicts
parentmedia-gfx/bonzomatic: drop unmaintained live (diff)
downloadguru-ead768b68d112a70320ab8ac31707467accb1af5.tar.gz
guru-ead768b68d112a70320ab8ac31707467accb1af5.tar.bz2
guru-ead768b68d112a70320ab8ac31707467accb1af5.zip
app-dicts/dictd-gazetteer: new
Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'app-dicts')
-rw-r--r--app-dicts/dictd-gazetteer/Manifest1
-rw-r--r--app-dicts/dictd-gazetteer/dictd-gazetteer-1.3.ebuild42
-rw-r--r--app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-makefile.patch20
-rw-r--r--app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-paths.patch12
-rw-r--r--app-dicts/dictd-gazetteer/metadata.xml8
5 files changed, 83 insertions, 0 deletions
diff --git a/app-dicts/dictd-gazetteer/Manifest b/app-dicts/dictd-gazetteer/Manifest
new file mode 100644
index 000000000..ff3d7f7fb
--- /dev/null
+++ b/app-dicts/dictd-gazetteer/Manifest
@@ -0,0 +1 @@
+DIST dict-gazetteer_1.3.orig.tar.gz 2860737 BLAKE2B fbe5ef47f3044bd48173f1b0462fa8706e7232a889f9cc1bf6a4822c4ed3c461266843f249b526ffc93fb05a19e5a5656466375aef1a71ce0578562bf3f428d5 SHA512 2c875eb42ed6e6d2a75a24da1548730b86a54c8a2ed7dd8f41499d0963741775a3d0579f2b99c25798ecb4a9ae5cb327c04d446e79f06b55325be1a14854581f
diff --git a/app-dicts/dictd-gazetteer/dictd-gazetteer-1.3.ebuild b/app-dicts/dictd-gazetteer/dictd-gazetteer-1.3.ebuild
new file mode 100644
index 000000000..a064ecd7d
--- /dev/null
+++ b/app-dicts/dictd-gazetteer/dictd-gazetteer-1.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="The original U.S. Gazetteer Place and Zipcode Files for dict"
+HOMEPAGE="https://sourceforge.net/projects/dict-gazetteer"
+SRC_URI="mirror://sourceforge/project/dict-gazetteer/dict-gazetteer_${PV}.orig.tar.gz"
+S="${WORKDIR}/dict-gazetteer-${PV}"
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=app-text/dictd-1.5.5"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-fix-makefile.patch"
+ "${FILESDIR}/${PN}-fix-paths.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+ mkdir -p "${T}/dict" || die
+}
+
+src_configure() {
+ econf --datadir="${T}"
+}
+
+src_compile() {
+ emake
+ emake db
+}
+
+src_install() {
+ emake install
+ insinto "/usr/share"
+ doins -r "${T}/dict"
+}
diff --git a/app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-makefile.patch b/app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-makefile.patch
new file mode 100644
index 000000000..70a77eae4
--- /dev/null
+++ b/app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-makefile.patch
@@ -0,0 +1,20 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -77,7 +77,7 @@
+ $(DATABASE) $(DATAINDEX): $(EXES) data/*.txt
+ ./format -p < data/places.txt > tmp
+ ./format -c < data/counties.txt >> tmp
+-# ./format -m < data/mcds.txt >> tmp
++ ./format -m < data/mcds.txt >> tmp
+ ./format -z < data/zips.txt >> tmp
+ sort tmp | ./format -f > $(DATABASE)
+ -rm -f tmp
+@@ -165,7 +165,7 @@
+ # fi \
+ # done
+ -rm -f config.h config.cache config.status stamp-h.in stamp-h
+- -rm -f Makefile
++ -rm -f Makefile
+ # -rm -f configure Makefile # We need to keep configure
+ -rm -f $(DATABASE) $(DATABASE).dz $(DATAINDEX)
+
diff --git a/app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-paths.patch b/app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-paths.patch
new file mode 100644
index 000000000..4452e4c79
--- /dev/null
+++ b/app-dicts/dictd-gazetteer/files/dictd-gazetteer-fix-paths.patch
@@ -0,0 +1,12 @@
+--- a/configure.in
++++ b/configure.in
+@@ -36,9 +36,6 @@
+ AC_INIT(format.c)
+ AC_CONFIG_HEADER(config.h)
+
+-prefix=/usr
+-datadir=/usr/lib
+-
+ echo Configuring for dict-gazetteer
+ echo .
+
diff --git a/app-dicts/dictd-gazetteer/metadata.xml b/app-dicts/dictd-gazetteer/metadata.xml
new file mode 100644
index 000000000..7e04e1c66
--- /dev/null
+++ b/app-dicts/dictd-gazetteer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">dict-gazetteer</remote-id>
+ </upstream>
+</pkgmetadata>