mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Upgrade to 1.3.
PR: ports/40822 Submitted by: maintainer.
This commit is contained in:
parent
87ed555743
commit
dee1308ad3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63306
@ -6,15 +6,14 @@
|
||||
#
|
||||
|
||||
PORTNAME= dictd-database
|
||||
PORTVERSION= 1.2.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.3
|
||||
CATEGORIES= chinese textproc
|
||||
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/dictd-database/
|
||||
DISTNAME= dict-zh-${PORTVERSION}
|
||||
|
||||
MAINTAINER= statue@freebsd.sinica.edu.tw
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/dictzip:${PORTSDIR}/net/dictd
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/dictzip:${PORTSDIR}/chinese/dictd
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
|
@ -1 +1 @@
|
||||
MD5 (dict-zh-1.2.1.tar.gz) = f5e7ccbed08e6f0b23f1aeba40e57196
|
||||
MD5 (dict-zh-1.3.tar.gz) = cd051b38396ece3a1b04e9a7b3c70d30
|
||||
|
@ -9,12 +9,3 @@
|
||||
|
||||
db :: rawdata $(DATABASES)
|
||||
|
||||
@@ -110,6 +110,8 @@
|
||||
./dictfmt -p -u http://www.mandarintools.com/cedict.html \
|
||||
-s "Chinese to English dictionary" \
|
||||
cedict < data/cedict.txt ; \
|
||||
+ env LANG=C sort cedict.index > cedict.index.tmp ; \
|
||||
+ mv cedict.index.tmp cedict.index; \
|
||||
if [ "$(DICTZIP)" != "cat" ]; then \
|
||||
dictzip cedict.dict; \
|
||||
fi
|
||||
|
@ -1,26 +0,0 @@
|
||||
--- make-rawdata.pl.orig Fri Jul 19 02:04:15 2002
|
||||
+++ make-rawdata.pl Fri Jul 19 02:04:50 2002
|
||||
@@ -111,7 +111,7 @@
|
||||
|
||||
sub cedict {
|
||||
|
||||
- open ( FILE, "data/cedict.utf8") ;
|
||||
+ open ( FILE, "data/cedict.b5") ;
|
||||
@RawData = <FILE> ;
|
||||
close (FILE) ;
|
||||
|
||||
@@ -121,12 +121,12 @@
|
||||
print TXT <<__END ;
|
||||
%h 00-database-info
|
||||
%d
|
||||
-English to Chinese Dictionary º~^¦r¨å
|
||||
+Chinese to English Dictionary º~^¦r¨å
|
||||
CEDICT January 17, 2001; Copyright 2000-01
|
||||
__END
|
||||
|
||||
foreach $data (@RawData) {
|
||||
- $data =~ s/(.*) \[(.*)\] \/(.*)\//%h $1\n%d\n$3\n/g ;
|
||||
+ $data =~ s/(.*) \[(.*)\] \/(.*)\//%h $1\n%d\n[$2]\n$3\n/g ;
|
||||
$data =~ s/\//\n/g ;
|
||||
print TXT $data ;
|
||||
}
|
Loading…
Reference in New Issue
Block a user