summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-09-09 07:11:59 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-09 07:11:59 +0700
commitb9b462116dfe9c601a23da572e605cfe2af2cc61 (patch)
treea42a62fbcc65b81787df547fdeaf380eae1cf599
parente8a5c27adaabfc53a544142b981b37b8b5cebb36 (diff)
downloadslackbuilds-b9b462116dfe9c601a23da572e605cfe2af2cc61.tar.gz
games/vera: Added (acryonym database).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/vera/README11
-rw-r--r--games/vera/doinst.sh10
-rw-r--r--games/vera/mkwtfdb.pl191
-rw-r--r--games/vera/semicolons.diff46
-rw-r--r--games/vera/slack-desc19
-rw-r--r--games/vera/vera.SlackBuild61
-rw-r--r--games/vera/vera.info10
7 files changed, 348 insertions, 0 deletions
diff --git a/games/vera/README b/games/vera/README
new file mode 100644
index 0000000000..4a60243c35
--- /dev/null
+++ b/games/vera/README
@@ -0,0 +1,11 @@
+vera (acronym database)
+
+V.E.R.A. is a free list of acronyms all of which are used in the field
+of computing. It is released under the GNU Free Documentation License.
+
+The database is installed in GNU Info format (use "info vera" to
+access) and as the wtf(6) database, replacing the tiny/outdated one
+from bsd-games.
+
+If you remove this package, reinstall bsd-games to revert to the original
+wtf database.
diff --git a/games/vera/doinst.sh b/games/vera/doinst.sh
new file mode 100644
index 0000000000..902384ea1c
--- /dev/null
+++ b/games/vera/doinst.sh
@@ -0,0 +1,10 @@
+# the README says to use '* V.E.R.A.' at the start, but that causes
+# the command 'info vera' to fail. Using '* VERA' works as expected.
+
+if ! grep "(vera)" usr/info/dir 1>/dev/null 2>/dev/null; then
+ cat << EOF >> usr/info/dir
+
+Miscellaneous
+* VERA: (vera). Virtual Entity of Relevant Acronyms
+EOF
+fi
diff --git a/games/vera/mkwtfdb.pl b/games/vera/mkwtfdb.pl
new file mode 100644
index 0000000000..c5430a4f5f
--- /dev/null
+++ b/games/vera/mkwtfdb.pl
@@ -0,0 +1,191 @@
+#!/usr/bin/perl -w
+
+# mkwtfdb.pl: create wtf(6) compatible acronym database from vera source.
+# part of slackbuilds.org vera SlackBuild.
+# by B. Watson, licensed under WTFPL.
+
+$dir = shift || ".";
+chdir $dir || die "$0: $dir: $!\n";
+
+@output = ();
+
+for $ext (0, 'a'..'z') {
+ open(my $f, "<vera.$ext") or next;
+ my ($acronym, $definition);
+
+ while(<$f>) {
+ last if /^\@table/;
+ }
+
+ while(<$f>) {
+ chomp;
+ last if /^\@end/;
+
+ if(/^\@item\s+(\w+)/) {
+ $acronym = $1;
+ undef $definition;
+ } elsif(/^\s*$/) {
+ push @output, "$acronym\t$definition\n";
+ undef $acronym;
+ } else {
+ $definition .= $_;
+ }
+ }
+}
+
+while(<DATA>) {
+ push @output, $_;
+}
+
+print sort { $a cmp $b } @output;
+
+# Rest of this file is the original contents of /usr/share/misc/acronyms
+# from Slack 14.1's bsd-games (minus the comment and blank line at the top).
+
+__DATA__
+AFAICR as far as I can recall
+AFAICT as far as I can tell
+AFAIK as far as I know
+AFAIR as far as I recall
+AFK away from keyboard
+AIUI as I understand it
+AKA also known as
+ASAP as soon as possible
+AWOL absent without official leave
+AYBABTU all your base are belong to us
+BBL [I'll] be back later
+BBS be back soon
+BBT be back tomorrow
+BFD big fucking deal
+BIAB back in a bit
+BIAF back in a few
+BIALW back in a little while
+BIAS back in a second
+BIAW back in a while
+BOFH bastard operator from hell
+BOHICA bend over here it comes again
+BRB [I'll] be right back
+BTDT been there, done that
+BTTH butt to the head
+BTW by the way
+CMIIW correct me if I'm wrong
+CNP continued [in my] next post
+CYA see you around
+DNDK don't know, don't care
+DTRT do the right thing
+DTWT do the wrong thing
+DWIM do what I mean
+EG evil grin
+EMSG email message
+ETLA extended three letter acronym
+EWAG experienced wild-ass guess
+FAQ frequently asked question
+FIIK fuck[ed] if I know
+FIIR fuck[ed] if I remember
+FOAD fall over and die
+FSDO for some definition of
+FSVO for some value of
+FUBAR fucked up beyond all recognition
+FUD fear, uncertainty and doubt
+FWIW for what it's worth
+FYI for your information
+G grin
+GMTA great minds think alike
+HAND have a nice day
+HHIS hanging head in shame
+HTH hope this helps
+IANAL I am not a lawyer
+IHAFC I haven't a fucking clue
+IHNFC I have no fucking clue
+IIANM if I am not mistaken
+IIRC if I recall correctly
+IMCO in my considered opinion
+IMHO in my humble opinion
+IMNSHO in my not so humble opinion
+IMO in my opinion
+IOW in other words
+IRL in real life
+ISTM it seems to me
+ISTR I seem to recall
+ITYM I think you mean
+JIC just in case
+JK just kidding
+JMO just my opinion
+JTLYK just to let you know
+KISS keep it simple, stupid
+KITA kick in the ass
+KNF kernel normal form
+L8R later
+LART luser attitude readjustment tool (ie, hammer)
+LJBF let's just be friends
+LMSO laughing my socks off
+LOL laughing out loud
+LTNS long time no see
+MOTAS member of the appropriate sex
+MOTOS member of the opposite sex
+MOTSS member of the same sex
+MTF more to follow
+MYOB mind your own business
+NBD no big deal
+NFC no fucking clue
+NFI no fucking idea
+NFW no fucking way
+NIH not invented here
+NP no problem
+NRFPT not ready for prime time
+NRN no reply necessary
+OIC oh, I see
+OTL out to lunch
+OTOH on the other hand
+OTTOMH off the top of my head
+PFY pimply faced youth
+PITA pain in the ass
+PNG persona non grata
+POC point of contact
+POLA principle of least astonishment
+PPL pretty please
+QED quod erat demonstrandum
+RFC request for comments
+RL real life
+RLC rod length check
+ROTFL rolling on the floor laughing
+RP responsible person
+RSN real soon now
+RTFB read the fine/fucking book
+RTFM read the fine/fucking manual
+RTFMP read the fine/fucking man page
+RTFS read the fine/fucking source
+SCNR sorry, could not resist
+SEP someone else's problem
+SFA sweet fuck all
+SHID slaps head in disgust
+SMLSFB so many losers, so few bullets
+SMOP simple matter of programming
+SNAFU situation normal, all fucked up
+SNERT snot-nosed egotistical rude teenager
+SO significant other
+SOB son of [a] bitch
+SOL shit out [of] luck
+SUS stupid user syndrome
+SWAG silly, wild-assed guess
+SWAHBI silly, wild-assed hare-brained idea
+TANSTAAFL there ain't no such thing as a free lunch
+TBD to be {decided,determined,done}
+TIA thanks in advance
+TLA three letter acronym
+TMA too many abbreviations
+TMI too much information
+TTFN ta ta for now
+TTYL talk to you later
+TYVM thank you very much
+UTSL use the source, Luke
+VEG very evil grin
+WAG wild-ass guess
+WIBNI wouldn't it be nice if
+WOFTAM waste of fucking time and money
+WOMBAT waste of money, brain, and time
+WTF {what,where,who,why} the fuck
+WTH {what,where,who,why} the hell
+WYSIWYG what you see is what you get
+YKWIM you know what I mean
+YMMV your mileage may vary
diff --git a/games/vera/semicolons.diff b/games/vera/semicolons.diff
new file mode 100644
index 0000000000..9fa72726b0
--- /dev/null
+++ b/games/vera/semicolons.diff
@@ -0,0 +1,46 @@
+diff -Naur vera-1.21a/vera.b vera-1.21a.patched/vera.b
+--- vera-1.21a/vera.b 2014-01-04 19:20:08.000000000 -0500
++++ vera-1.21a.patched/vera.b 2014-07-29 14:43:13.000000000 -0400
+@@ -801,7 +801,8 @@
+ @item BP
+ Base Pointer [register] (CPU, Intel, assembler)
+
+-BP;DR Behind Paywall; Didn't Read (slang, Usenet, IRC)
++@item BP;DR
++Behind Paywall; Didn't Read (slang, Usenet, IRC)
+
+ @item BPB
+ BIOS Parameter Block (BIOS, DOS, HDD, FDD)
+@@ -812,6 +813,9 @@
+ @item BPD
+ BankParameterDaten (DDBAC)
+
++@item BPDR
++Behind Paywall; Didn't Read (slang, Usenet, IRC)
++
+ @item BPDU
+ Bridge Protocol Data Unit (PDU)
+
+diff -Naur vera-1.21a/vera.t vera-1.21a.patched/vera.t
+--- vera-1.21a/vera.t 2014-01-04 19:20:08.000000000 -0500
++++ vera-1.21a.patched/vera.t 2014-07-29 14:44:06.000000000 -0400
+@@ -789,7 +789,8 @@
+ @item TL
+ Transform and Lighting (3D), "T&L"
+
+-TL;DR Too Long; Didn't Read (slang, Usenet, IRC)
++@item TL;DR
++Too Long; Didn't Read (slang, Usenet, IRC)
+
+ @item TLA
+ Three Letter Acronym (slang)
+@@ -806,6 +807,9 @@
+ @item TLDP
+ The Linux Documentation Project (Linux), http://www.tldp.org
+
++@item TLDR
++Too Long; Didn't Read (slang, Usenet, IRC)
++
+ @item TLER
+ Time Limited Error Recovery (WD, RAID)
+
diff --git a/games/vera/slack-desc b/games/vera/slack-desc
new file mode 100644
index 0000000000..1b05ef610f
--- /dev/null
+++ b/games/vera/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+vera: vera (acronym database)
+vera:
+vera: V.E.R.A. is a free list of acronyms all of which are used in the field
+vera: of computing. It is released under the GNU Free Documentation License.
+vera:
+vera:
+vera:
+vera:
+vera:
+vera:
+vera:
diff --git a/games/vera/vera.SlackBuild b/games/vera/vera.SlackBuild
new file mode 100644
index 0000000000..2caf73825b
--- /dev/null
+++ b/games/vera/vera.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Slackware build script for vera
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=vera
+VERSION=${VERSION:-1.21a}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Fix TL;DR and BP;DR entries.
+patch -p1 < $CWD/semicolons.diff
+
+makeinfo --force $PRGNAM.texi
+
+mkdir -p $PKG/usr/info
+for i in $PRGNAM.info*; do
+ gzip -9c < $i > $PKG/usr/info/$i.gz
+done
+
+# Generate wtf(6) database from VERA contents.
+# Yes, this conflicts with bsd-games, but it's not like it's going to break
+# anyone's system. As shipped, /usr/share/misc/acronyms is about useless.
+mkdir -p $PKG/usr/share/misc
+perl $CWD/mkwtfdb.pl > $PKG/usr/share/misc/acronyms
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a changelog README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/vera/vera.info b/games/vera/vera.info
new file mode 100644
index 0000000000..b3e3d59ae4
--- /dev/null
+++ b/games/vera/vera.info
@@ -0,0 +1,10 @@
+PRGNAM="vera"
+VERSION="1.21a"
+HOMEPAGE="ftp://ftp.gnu.org/gnu/vera/"
+DOWNLOAD="ftp://ftp.gnu.org/gnu/vera/vera-1.21a.tar.gz"
+MD5SUM="9004056a56a34529fcdb7571f41772d9"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"