app-dicts/dictd-devils: fixes

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-06 02:56:41 +02:00
parent ffed7a286c
commit e3863fd623

View File

@@ -22,11 +22,13 @@ PATCHES=( "${FILESDIR}/format.patch" )
src_prepare() {
eapply_user
sed -e 's/\r//g' -i 972.txt
sed -e "/^ *THE DEVIL'S DICTIONARY/,/^End of Project Gutenberg's The Devil's Dictionary/!{w COPYING.gutenberg" -e 'd}' -i 972.txt
sed -e '/^\S/{: l;N;s/\n *\(.\)/ \1/g;t l}' -i 972.txt
sed -e "s/^\\([A-Zor .'?-]*[^,A-Zor .'?-]\\)/ \1/" -i 972.txt
sed -e '/^ /y/,/\a/' -i 972.txt
sed \
-e 's/\r//g' \
-e "/^ *THE DEVIL'S DICTIONARY/,/^End of Project Gutenberg's The Devil's Dictionary/!{w COPYING.gutenberg" -e 'd}' \
-e '/^\S/{: l;N;s/\n *\(.\)/ \1/g;t l}' \
-e "s/^\\([A-Zor .'?-]*[^,A-Zor .'?-]\\)/ \1/" \
-e '/^ /y/,/\a/' \
-i 972.txt || die
}
src_compile() {
@@ -34,12 +36,12 @@ src_compile() {
-s "The Devil's Dictionary (2015-08-22 Project Gutenberg version)" \
--headword-separator " or " \
--columns 80 \
-h devils
sed -e 'y/\a/,/' -i devils.dict
dictzip devils.dict
-h devils || die
sed -e 'y/\a/,/' -i devils.dict || die
dictzip devils.dict || die
}
src_install() {
insinto /var/dict
insinto /usr/share/dict
doins devils.dict.dz devils.index
}