diff options
Diffstat (limited to 'app-accessibility/nfbtrans')
8 files changed, 221 insertions, 0 deletions
diff --git a/app-accessibility/nfbtrans/Manifest b/app-accessibility/nfbtrans/Manifest new file mode 100644 index 000000000000..6b2140bdd2ce --- /dev/null +++ b/app-accessibility/nfbtrans/Manifest @@ -0,0 +1,10 @@ +AUX nfbtrans-7.74-gentoo-fix.patch 309 SHA256 692bfd049d9e34ccb47e19f80d907853e577736609f091aa34ac621feb607bd6 SHA512 7f739a15ab8edd8853702b897e9b00f34256f62b98ae2cb0a17bea487b81f4925f85f0eab77c119a8182965b69c18b6369954121620af288da27bc8f9b122167 WHIRLPOOL 30a59c4f3beea070a902a63db24e2dac1c9f93fd96696dee500851e6aa10f20bf2ec38ce66718515bd9899cc7bc44a5e6dbc43a8f325b7f38986c135adc051bb +AUX nfbtrans-7.74-getline-fix.patch 957 SHA256 9c2b27afbf2c6d15d67c342160a1480f2398ffd62f366c0de7f1ea8a20235447 SHA512 35a57c029f2c54f04fe0e9be66df39da11e7415095959c2d13b5b9e66b223d15c9b72f4a392092dc4075e4753fad542f33f2cb59e83702378505e3ecc6885cbc WHIRLPOOL 83c9eb2be4f31f53db57eaefacb4d62d4c5523bbfa48c92c7792d9db632b930a03cac6ff1f813b8cd5f17cf6162bd32dd285da26701f7ea81a63be79ea04f657 +AUX nfbtrans-7.74-respect-ldflags.patch 692 SHA256 c46491deec4e3a95e812188dbf75e93e85de09fd86ca42ac7162722ac51eb119 SHA512 d93ec7be4119c4b129558d0d6c688cca9edc25129c487250f57071916bc41ab2306fccafae5e7d4b9e911250527be01dfefbcb87c111743f5a6829cd14a3ec82 WHIRLPOOL 4f823bec5167a6dff56704558b4b5e5147eed6498f56a007e178a17cdd7841ca12bb74d81ada610f19d549c864931733416030b46ae4e316bfc2f447e53665d7 +DIST nfbtr774.zip 470847 SHA256 87cad2aa875f44ad6035f5af080e02ecc23a8c3718e3e1943cb3a006c5fc93ec SHA512 58fa72c53d88d11fa005572f4e2ebd81d21afaec2fac0e986bfad66b42c194ec3573199e2f2b863725001c1cb777b60881605a1533f7eb73e31e24a244673c2c WHIRLPOOL e9bb51ac86ce3cda73b0b0e5199f68b37b8005c29deda1a154f68163eda6db564f887b234cc9184fdd7d13bbaeb93638717b2e7d40d50b16559379600ede5471 +EBUILD nfbtrans-7.74-r1.ebuild 877 SHA256 f76989cb95ec640b18f2d2810de7b96bc9962ccfa74de488d8140fb2293fb2c3 SHA512 aa665495ce093fdeadf09507e60bc8f187e85a08b1ddd7bc577f2aaa85ac993223cb0d413acbba822319f2068972adb0c615a961645ba13c6be7e973712a4d90 WHIRLPOOL 445fcba0a9a58da50e6e7d0ebcad9bb0be655f68112f11d44254754bbbcddf6106b3d639271cdfa58616b0db753c994117f6b42557905a5bb1e29c7cb9b268f7 +EBUILD nfbtrans-7.74-r2.ebuild 919 SHA256 68d84ad6ddb061517f0bdc7a4d9fa04c1cfb2b8055d3498b25319bbddff9a97d SHA512 1246c8c087aa503e70a7d6be65f436811af9b02070bd483a5d623993d867c587b07893b0439d7ef230bcdf63e8edb5b62ac1457d2b4294e62203ed48f0b98cf6 WHIRLPOOL bc003af51b6af3849fbca34628a78ea4b0c2cbea7a83b1b35e707cb440d53c4babd18655ad4d0a8345693c024ac3916313a40880196a1ee144e8511bd6c62db0 +EBUILD nfbtrans-7.74.ebuild 850 SHA256 023afcb6c187da4cdf298082246de1d53a2a4b6920d24dfb0a39afdae2436d73 SHA512 668d12d267b3bbd1c915ec470ed79764ae1d177469b594a1ac853b905938e33609577cc50b101a71cdfda4581b56de03596b893a169820b0e060bf87b9695c76 WHIRLPOOL 0beb5a6487baf0a2dd1fb492b9c3eef5f15dd38cd66be2d06c64a7edf59a2ee9f0fc5807b9f56c950b7ae8c33cd0f4eb1df2284aeddded75093df35f2e921da1 +MISC ChangeLog 2971 SHA256 1e298cca2f442baea0e179d0d10354c4edc7df0a52fd43cbcd915515a4f77ba4 SHA512 7c78781a03ccfd44e53aa7dc94a7cc2799656924aea69b9b3bed5734adea22f79db79b655ca170ae581f910264329e2c62a1cf5115160735ce4e4cad7b62f7e0 WHIRLPOOL e52051c202852460cea70c690703cb0881de313441078949b12efd2c52466dec8742d024020ac4ab6ac1a7d85488952b7c3702de62422efedde9efdbfb005254 +MISC ChangeLog-2015 2417 SHA256 a24e71cfbc7f3eb76d58bfb917d9538e1883170e8ba946f730c06a47dba5af4f SHA512 ef359c9ca4d10d06e28b472a56f0dcdfbf216976cbc930a0a6ec80670c8866bf3c36ec6511d8a39595daf332e0cd838eee7acd68cc084bd9802d2c58ac195d80 WHIRLPOOL 687507d258e0155c6d9e126d32283644687d47d6e147faad8d5ad194e2a8e60671a09e586731e538ae4168834b0967ee5a6276d9ba200ba1edd3c716caacbe7d +MISC metadata.xml 345 SHA256 0d69ba7dbe50e45a3a432674ba0fa2c0937f5b668ca53963cae570d5609c26e9 SHA512 d034cf8435010ee64e6186cb7e14f559d3e43eec3b3b31e0cec4da133c65cd8c34a00cc4c66958fb13fc1470ef0fa5307331032cde328a443b877be6f3d4c44c WHIRLPOOL ae5dcd066039712e1d635dacca123201e5789281b68798b436f3f4273c976931d26ee24dfddc0a635f1b981e7c138e0e5c68cceb83a0b214e996cb67f60bfa58 diff --git a/app-accessibility/nfbtrans/files/nfbtrans-7.74-gentoo-fix.patch b/app-accessibility/nfbtrans/files/nfbtrans-7.74-gentoo-fix.patch new file mode 100644 index 000000000000..7040de343db0 --- /dev/null +++ b/app-accessibility/nfbtrans/files/nfbtrans-7.74-gentoo-fix.patch @@ -0,0 +1,11 @@ +--- a/nfbtrans.c 2004-09-21 19:52:34.341784094 -0500 ++++ b/nfbtrans.c 2004-09-21 19:54:07.005727168 -0500 +@@ -6,7 +6,7 @@ + #define LINT_ARGS + #define DOS + #else +-#define UNIX_PATH "/usr/local/lib/" ++#define UNIX_PATH "/etc/nfbtrans/" + #endif /* unix */ + #include <stdio.h> + #include <sys/types.h> diff --git a/app-accessibility/nfbtrans/files/nfbtrans-7.74-getline-fix.patch b/app-accessibility/nfbtrans/files/nfbtrans-7.74-getline-fix.patch new file mode 100644 index 000000000000..14c13c063246 --- /dev/null +++ b/app-accessibility/nfbtrans/files/nfbtrans-7.74-getline-fix.patch @@ -0,0 +1,40 @@ +diff --git a/nfbtrans.c.orig b/nfbtrans.c +index e697393..9a2944e 100644 +--- a/nfbtrans.c.orig ++++ b/nfbtrans.c +@@ -534,7 +534,7 @@ void compact_line(char *); + void length_error(char *); + void do_lop_op(foptype *); + void do_lop(void); +-void getline(void); ++void nfbtrans_getline(void); + void get_input(char *, int); + int get_paragraph_type(int); + void check_purge(void); +@@ -2585,7 +2585,7 @@ void do_lop() + } + } /* do_lop */ + +-void getline() ++void nfbtrans_getline() + { + int i = -1; + for (;;) +@@ -2722,7 +2722,7 @@ int get_paragraph_type(int mode) + total_lines = 0; + do + { +- getline(); ++ nfbtrans_getline(); + if (linein[0]) + { /* line not empty */ + if (prev_char == '\0') +@@ -2874,7 +2874,7 @@ void get_word() + } /* head */ + else + header_flag = 0; +- getline(); ++ nfbtrans_getline(); + if (remove_page_nums) + remove_page_number(); + if (auto_center) diff --git a/app-accessibility/nfbtrans/files/nfbtrans-7.74-respect-ldflags.patch b/app-accessibility/nfbtrans/files/nfbtrans-7.74-respect-ldflags.patch new file mode 100644 index 000000000000..61c991c8a368 --- /dev/null +++ b/app-accessibility/nfbtrans/files/nfbtrans-7.74-respect-ldflags.patch @@ -0,0 +1,24 @@ +--- a/Makefile 2017-06-13 11:08:23.428114301 -0500 ++++ b/Makefile 2017-06-13 11:09:01.084376256 -0500 +@@ -28,10 +28,10 @@ + djgppall: nfbtrans.exe
+
+ nfbtrans: $(OBJFILES)
+- $(CC) $(CFLAGS) $(OBJFILES) $(LIBS) -o nfbtrans
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJFILES) $(LIBS) -o nfbtrans
+
+ nfbtrans.exe:$(OBJFILES)
+- $(CC) $(CFLAGS) $(OBJFILES) -o nfbtrans.exe
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJFILES) -o nfbtrans.exe
+
+ ultrix:
+ $(MAKE) CFLAGS=-O
+@@ -44,7 +44,7 @@ +
+ insight:
+ insight -fno-builtin -fwritable-strings \
+- $(CFLAGS) $(OBJFILES) $(LIBS) -o nfbtrans
++ $(CFLAGS) $(LDFLAGS) $(OBJFILES) $(LIBS) -o nfbtrans
+
+ aix:
+ $(MAKE) all CC=cc CFLAGS="-o -Dunix -Daix"
diff --git a/app-accessibility/nfbtrans/metadata.xml b/app-accessibility/nfbtrans/metadata.xml new file mode 100644 index 000000000000..8fb4aba1043e --- /dev/null +++ b/app-accessibility/nfbtrans/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>williamh@gentoo.org</email> +</maintainer> +<maintainer type="project"> + <email>accessibility@gentoo.org</email> + <name>Gentoo Accessibility Project</name> +</maintainer> +</pkgmetadata> diff --git a/app-accessibility/nfbtrans/nfbtrans-7.74-r1.ebuild b/app-accessibility/nfbtrans/nfbtrans-7.74-r1.ebuild new file mode 100644 index 000000000000..6b5b3fe9191e --- /dev/null +++ b/app-accessibility/nfbtrans/nfbtrans-7.74-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="3" + +inherit eutils + +DESCRIPTION="braille translator from the National Federation of the Blind" +HOMEPAGE="http://www.nfb.org/nfbtrans" +SRC_URI="http://www.nfb.org/Images/nfb/Products_Technology/nfbtr774.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND=" >=app-arch/unzip-5.50-r2" +RDEPEND="" + +S=${WORKDIR} + +src_prepare() { + mv MAKEFILE Makefile + mv SPANISH.ZIP spanish.zip + make lowercase || die + epatch "${FILESDIR}"/${P}-gentoo-fix.patch + epatch "${FILESDIR}"/${P}-getline-fix.patch +} + +src_compile() { + make CC=$(tc-getCC) \ + LIBS= \ + CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}" all || die +} + +src_install() { + dobin nfbtrans || die + dodoc *fmt readme.txt makedoc + insinto /etc/nfbtrans + doins *cnf *tab *dic spell.dat *zip +} diff --git a/app-accessibility/nfbtrans/nfbtrans-7.74-r2.ebuild b/app-accessibility/nfbtrans/nfbtrans-7.74-r2.ebuild new file mode 100644 index 000000000000..57efe93d0423 --- /dev/null +++ b/app-accessibility/nfbtrans/nfbtrans-7.74-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="braille translator from the National Federation of the Blind" +HOMEPAGE="http://www.nfb.org/nfbtrans" +SRC_URI="http://www.nfb.org/Images/nfb/Products_Technology/nfbtr774.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=" >=app-arch/unzip-5.50-r2" +RDEPEND="" + +S=${WORKDIR} + +PATCHES=( +"${FILESDIR}"/${P}-gentoo-fix.patch +"${FILESDIR}"/${P}-getline-fix.patch +"${FILESDIR}"/${P}-respect-ldflags.patch +) + +src_prepare() { + mv MAKEFILE Makefile || die + mv SPANISH.ZIP spanish.zip || die + emake lowercase + default +} + +src_compile() { + emake CC=$(tc-getCC) \ + LIBS= \ + CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}" all +} + +src_install() { + dobin nfbtrans + dodoc *fmt readme.txt makedoc + insinto /etc/nfbtrans + doins *cnf *tab *dic spell.dat *zip +} diff --git a/app-accessibility/nfbtrans/nfbtrans-7.74.ebuild b/app-accessibility/nfbtrans/nfbtrans-7.74.ebuild new file mode 100644 index 000000000000..384f8bbb2942 --- /dev/null +++ b/app-accessibility/nfbtrans/nfbtrans-7.74.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="braille translator from the National Federation of the Blind" +HOMEPAGE="http://www.nfb.org/nfbtrans" +SRC_URI="http://www.nfb.org/Images/nfb/Products_Technology/nfbtr774.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ppc x86" +IUSE="" + +DEPEND=" >=app-arch/unzip-5.50-r2" +RDEPEND="" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + mv MAKEFILE Makefile + mv SPANISH.ZIP spanish.zip + make lowercase || die + epatch "${FILESDIR}"/${P}-gentoo-fix.patch + epatch "${FILESDIR}"/${P}-getline-fix.patch +} + +src_compile() { + make CC=$(tc-getCC) LIBS= CFLAGS="${CFLAGS} -DLINUX" all || die +} + +src_install() { + dobin nfbtrans || die + dodoc *fmt readme.txt makedoc + insinto /etc/nfbtrans + doins *cnf *tab *dic spell.dat *zip +} |