aboutsummaryrefslogtreecommitdiff
path: root/french/dico
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2002-10-31 23:49:38 +0000
committerOliver Braun <obraun@FreeBSD.org>2002-10-31 23:49:38 +0000
commit8b2d0da4e2e11c5ba43334766decd8eb223b9029 (patch)
tree8207a2764263980e09ce535b05db4c19fb6010e9 /french/dico
parentd515a78c14dfe97d84e0d0b9be0393625954463d (diff)
downloadports-8b2d0da4e2e11c5ba43334766decd8eb223b9029.tar.gz
ports-8b2d0da4e2e11c5ba43334766decd8eb223b9029.zip
Notes
Diffstat (limited to 'french/dico')
-rw-r--r--french/dico/Makefile28
-rw-r--r--french/dico/distinfo2
-rw-r--r--french/dico/files/patch-Makefile.am4
-rw-r--r--french/dico/files/patch-configure.in4
-rw-r--r--french/dico/files/patch-lexique-Makefile.am4
-rw-r--r--french/dico/files/patch-manuel-Makefile.am4
-rw-r--r--french/dico/files/patch-sources-Makefile.am4
-rw-r--r--french/dico/files/patch-sources-dico.c49
8 files changed, 48 insertions, 51 deletions
diff --git a/french/dico/Makefile b/french/dico/Makefile
index a73b62879f66..4d161b94d00d 100644
--- a/french/dico/Makefile
+++ b/french/dico/Makefile
@@ -7,25 +7,37 @@
PORTNAME= dico
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= textproc
-MASTER_SITES= http://www.montefiore.ulg.ac.be/~geuzaine/BRONNE/WWW/ftp/
-# ftp://ftp.supelec.fr/lsi/pub/security/
-# have dico.tar.gz which fail because of EXTRACT_SUFX
-DISTNAME= le_dico
-EXTRACT_SUFX= .tgz
+MASTER_SITES= http://homepages.starnet.fr/dtrystram/
+# http://www.montefiore.ulg.ac.be/~geuzaine/BRONNE/WWW/ftp/ le_dico.tgz
+# ftp://ftp.supelec.fr/lsi/pub/security/ le_dico.tar.gz
+# http://homepages.starnet.fr/dtrystram/ ledico.zip
+# http://hpux.cict.fr/ftp/hpux/Text/ dico-1.1/dico-1.1-ss-11.00.tar.gz
+DISTNAME= ledico
MAINTAINER= cyrille.lefevre@laposte.net
-NO_WRKSUBDIR= true
-PATCH_STRIP= -p1
+# Global variables
+#
+
+USE_REINPLACE= true
+USE_ZIP= true
+WRKSRC= ${WRKDIR}/${PORTNAME}
USE_AUTOMAKE= true
USE_GMAKE= true
AUTOMAKE_ARGS= --add-missing --foreign --include-deps
MAKE_ARGS= prefix=${PREFIX}
MAN1= dico.1
+# Post-patch
+#
+
post-patch:
- @${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/sources/dico.c
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/sources/dico.c
+
+# Pre-configure
+#
pre-configure:
@cd ${WRKSRC} && ${ACLOCAL}
diff --git a/french/dico/distinfo b/french/dico/distinfo
index 9da9067e2484..3faf8157a41b 100644
--- a/french/dico/distinfo
+++ b/french/dico/distinfo
@@ -1 +1 @@
-MD5 (le_dico.tgz) = df18e084ee2468a0dfc371f752bdbad0
+MD5 (ledico.zip) = 3cd23e5ebf760cac2c8745fe342a86c3
diff --git a/french/dico/files/patch-Makefile.am b/french/dico/files/patch-Makefile.am
index 7e5fba1260da..f2e7f0e46422 100644
--- a/french/dico/files/patch-Makefile.am
+++ b/french/dico/files/patch-Makefile.am
@@ -1,5 +1,5 @@
---- old/Makefile.am Thu Jan 1 01:00:00 1970
-+++ new/Makefile.am Wed Oct 11 03:49:06 2000
+--- /dev/null Thu Jan 1 01:00:00 1970
++++ Makefile.am Wed Oct 11 03:49:06 2000
@@ -0,0 +1,4 @@
+docdir = $(datadir)/doc/dico
+doc_DATA = README.TXT
diff --git a/french/dico/files/patch-configure.in b/french/dico/files/patch-configure.in
index c735131a228e..832ee4d5ce4d 100644
--- a/french/dico/files/patch-configure.in
+++ b/french/dico/files/patch-configure.in
@@ -1,5 +1,5 @@
---- old/configure.in Thu Jan 1 01:00:00 1970
-+++ new/configure.in Wed Oct 11 04:19:05 2000
+--- /dev/null Thu Jan 1 01:00:00 1970
++++ configure.in Wed Oct 11 04:19:05 2000
@@ -0,0 +1,4 @@
+AC_INIT(sources/dico.c)
+AM_INIT_AUTOMAKE(dico, 1.1)
diff --git a/french/dico/files/patch-lexique-Makefile.am b/french/dico/files/patch-lexique-Makefile.am
index c6d008b26b5b..3d164d3e962b 100644
--- a/french/dico/files/patch-lexique-Makefile.am
+++ b/french/dico/files/patch-lexique-Makefile.am
@@ -1,5 +1,5 @@
---- old/lexique/Makefile.am Thu Jan 1 01:00:00 1970
-+++ new/lexique/Makefile.am Wed Oct 11 04:40:58 2000
+--- /dev/null Thu Jan 1 01:00:00 1970
++++ lexique/Makefile.am Wed Oct 11 04:40:58 2000
@@ -0,0 +1,4 @@
+pkgdata_DATA = a.dic b.dic c.dic d.dic e.dic f.dic g.dic h.dic \
+ i.dic j.dic k.dic l.dic m.dic n.dic o.dic p.dic \
diff --git a/french/dico/files/patch-manuel-Makefile.am b/french/dico/files/patch-manuel-Makefile.am
index 2218415ef217..8bfc4f7e96b1 100644
--- a/french/dico/files/patch-manuel-Makefile.am
+++ b/french/dico/files/patch-manuel-Makefile.am
@@ -1,5 +1,5 @@
---- old/manuel/Makefile.am Thu Jan 1 01:00:00 1970
-+++ new/manuel/Makefile.am Wed Oct 11 03:46:58 2000
+--- /dev/null Thu Jan 1 01:00:00 1970
++++ manuel/Makefile.am Wed Oct 11 03:46:58 2000
@@ -0,0 +1,7 @@
+docdir = $(datadir)/doc/dico
+doc_DATA = copying.doc
diff --git a/french/dico/files/patch-sources-Makefile.am b/french/dico/files/patch-sources-Makefile.am
index 18e1cbe003c7..486ee5a9febc 100644
--- a/french/dico/files/patch-sources-Makefile.am
+++ b/french/dico/files/patch-sources-Makefile.am
@@ -1,4 +1,4 @@
---- old/sources/Makefile.am Thu Jan 1 01:00:00 1970
-+++ new/sources/Makefile.am Wed Oct 11 03:35:13 2000
+--- /dev/null Thu Jan 1 01:00:00 1970
++++ sources/Makefile.am Wed Oct 11 03:35:13 2000
@@ -0,0 +1 @@
+bin_PROGRAMS = dico
diff --git a/french/dico/files/patch-sources-dico.c b/french/dico/files/patch-sources-dico.c
index 31ce0103adbf..db23626d98b2 100644
--- a/french/dico/files/patch-sources-dico.c
+++ b/french/dico/files/patch-sources-dico.c
@@ -1,16 +1,14 @@
---- old/sources/dico.c Thu Mar 27 14:57:57 1997
-+++ new/sources/dico.c Wed Oct 11 04:04:49 2000
-@@ -19,8 +19,8 @@
+--- sources/dico.c.orig Sat Oct 24 16:16:30 1992
++++ sources/dico.c Mon Apr 15 18:09:04 2002
+@@ -19,6 +19,7 @@
| |
+-----------------------------------------------------------------------+
*/
--#define LINUX
-
+#ifndef __FreeBSD__
#ifndef LINUX
#ifndef sony
#ifndef MSDOS
-@@ -28,6 +28,7 @@
+@@ -26,6 +27,7 @@
#endif
#endif
#endif
@@ -18,7 +16,7 @@
#ifdef sony /* Sony News WorkStations */
#define UNIX
-@@ -42,6 +43,12 @@
+@@ -40,6 +42,12 @@
#define MYOS "LINUX"
#endif
@@ -31,20 +29,16 @@
#ifdef MSDOS /* Systeme d'operation de disque */
#define MYOS "MSDOS" /* Microsoft :-) */
#endif
-@@ -51,8 +58,11 @@
+@@ -49,7 +57,7 @@
#define ISO_TERM 3
#define COMMENT_CHAR 35 /* '#' ligne de commentaire */
--#define DICT_PATH "/usr/local/lib/dico" /* path par defaut unix/dos */
-+#ifndef MSDOS
-+#define DICT_PATH "!!PREFIX!!/share/dico" /* path par defaut unix/dos */
-+#else
+-#define DICT_PATH "/usr/local/lib/dico" /* path par defaut unix/dos */
++#define DICT_PATH "%%PREFIX%%/share/dico" /* path par defaut unix/dos */
#define DOS_PATH "lexique" /* path par defaut Dos uniquement */
-+#endif
#define DICT_EXT ".dic" /* extension des fichiers dicos */
#define VERSION_FILE "version.dic" /* fichier texte version dico */
-
-@@ -60,11 +70,13 @@
+@@ -58,11 +66,13 @@
#define OK 0
#define MYVBUF 10240 /* pour setvbuf() eventuel */
@@ -58,7 +52,7 @@
typedef unsigned char byte;
-@@ -147,7 +159,9 @@
+@@ -145,7 +155,9 @@
if(argv[1][0] =='-') /* option ligne commande?*/
return options( argv[1][1] );
@@ -68,7 +62,7 @@
while( --argc) /* Allez, roulez ! */
{
-@@ -157,7 +171,9 @@
+@@ -155,7 +167,9 @@
lookfor( argv[argc] );
}
@@ -78,7 +72,7 @@
return OK ;
}
-@@ -369,7 +385,9 @@
+@@ -367,7 +381,9 @@
StrLwr( pattern ); /* passe en minuscules comme le dico */
car = equival (pattern[0]);
@@ -88,7 +82,7 @@
sprintf(fname, "%s%s%c%s", dict_path, sep, pattern[0], DICT_EXT ) ;
-@@ -395,7 +413,11 @@
+@@ -393,7 +409,11 @@
if( fmatch(sbuf,pattern) )
{
translate( buf ); /* gere terminaux.... */
@@ -100,7 +94,7 @@
count ++ ;
}
}
-@@ -451,8 +473,11 @@
+@@ -449,8 +469,11 @@
if( fmatch(sbuf,pattern) )
{
translate( buf ) ;
@@ -113,22 +107,13 @@
count ++ ;
}
}
-@@ -474,7 +499,7 @@
-
- mybanner()
- {
--/* printf("\nDICO V %s (%s) - R.Cougnenc 1992\n\n", __Version__, MYOS);*/
-+ printf("\nDICO V %s (%s) - R.Cougnenc 1992\n\n", __Version__, MYOS);
- }
- /*--------------------------------------------------------------------------*/
-
-@@ -526,7 +551,9 @@
+@@ -524,7 +547,9 @@
byte ville[50], code[6];
byte *r = ville;
-+/* #ifndef __FreeBSD__ */
++#ifndef __FreeBSD__
*str = ToUpper ( *str ); /* Premiere lettre... */
-+/* #endif */
++#endif
if( ! strchr( str, '\t') ) /* Cas du nom commun */
{