Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2000 05:09:41 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21902: New port: textproc/dico - 1.1
Message-ID:  <200010110309.e9B39fU92249@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         21902
>Category:       ports
>Synopsis:       New port: textproc/dico - 1.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 10 20:10:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
ACME
>Environment:

FreeBSD gits 4.1-STABLE FreeBSD 4.1-STABLE #3: Sat Sep 23 10:20:30 CEST 2000     root@gits:/disk2/4.0-stable/src/sys/compile/CUSTOM  i386

>Description:

	A French dictionary containing over 100,000 elements. These include
	common nouns, verbs, adjectives, conjugations and plurals. It also
	includes post codes. The package features a fast spell checking
	program.  The documentation is in FRENCH (no English) but it should
	be fairly obvious how to use it.

>How-To-Repeat:

	n/a

>Fix:

	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	textproc/dico
#	textproc/dico/Makefile
#	textproc/dico/files
#	textproc/dico/files/patch-Makefile.am
#	textproc/dico/files/patch-lexique-Makefile.am
#	textproc/dico/files/patch-lexique-version.dic
#	textproc/dico/files/patch-manuel-Makefile.am
#	textproc/dico/files/patch-configure.in
#	textproc/dico/files/patch-sources-dico.c
#	textproc/dico/files/patch-sources-Makefile.am
#	textproc/dico/pkg-comment
#	textproc/dico/pkg-descr
#	textproc/dico/pkg-plist
#	textproc/dico/distinfo
#
echo c - textproc/dico
mkdir -p textproc/dico > /dev/null 2>&1
echo x - textproc/dico/Makefile
sed 's/^X//' >textproc/dico/Makefile << 'END-of-textproc/dico/Makefile'
X# New ports collection makefile for:	dico
X# Date created:				11 October 2000
X# Whom:					Cyrille Lefevre <clefevre@citeweb.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dico
XPORTVERSION= 	1.1
XCATEGORIES=	textproc
XMASTER_SITES=	http://www.montefiore.ulg.ac.be/~geuzaine/BRONNE/WWW/ftp/
X#		ftp://ftp.supelec.fr/lsi/pub/security/
X#		have dico.tar.gz which fail because of EXTRACT_SUFX
XDISTNAME=	le_dico
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	clefevre@citeweb.net
X
XNO_WRKSUBDIR=	true
XPATCH_STRIP=	-p1
XUSE_AUTOMAKE=	true
XAUTOMAKE=	automake --add-missing --foreign --include-deps
XACLOCAL=	aclocal
XMAN1=		dico.1
X
Xpost-patch:
X	@${PERL} -pi.fbsd -e 's.!!PREFIX!!.${PREFIX}.g' ${WRKSRC}/sources/dico.c
X
Xpre-configure:
X	@cd ${WRKSRC} && ${ACLOCAL}
X
X.include <bsd.port.mk>
END-of-textproc/dico/Makefile
echo c - textproc/dico/files
mkdir -p textproc/dico/files > /dev/null 2>&1
echo x - textproc/dico/files/patch-Makefile.am
sed 's/^X//' >textproc/dico/files/patch-Makefile.am << 'END-of-textproc/dico/files/patch-Makefile.am'
X--- old/Makefile.am	Thu Jan  1 01:00:00 1970
X+++ new/Makefile.am	Wed Oct 11 03:49:06 2000
X@@ -0,0 +1,4 @@
X+docdir = $(datadir)/doc/dico
X+doc_DATA = README.TXT
X+
X+SUBDIRS = sources lexique manuel
END-of-textproc/dico/files/patch-Makefile.am
echo x - textproc/dico/files/patch-lexique-Makefile.am
sed 's/^X//' >textproc/dico/files/patch-lexique-Makefile.am << 'END-of-textproc/dico/files/patch-lexique-Makefile.am'
X--- old/lexique/Makefile.am	Thu Jan  1 01:00:00 1970
X+++ new/lexique/Makefile.am	Wed Oct 11 04:40:58 2000
X@@ -0,0 +1,4 @@
X+pkgdata_DATA =	a.dic b.dic c.dic d.dic e.dic f.dic g.dic h.dic \
X+		i.dic j.dic k.dic l.dic m.dic n.dic o.dic p.dic \
X+		q.dic r.dic s.dic t.dic u.dic v.dic w.dic x.dic \
X+		y.dic z.dic version.dic
END-of-textproc/dico/files/patch-lexique-Makefile.am
echo x - textproc/dico/files/patch-lexique-version.dic
sed 's/^X//' >textproc/dico/files/patch-lexique-version.dic << 'END-of-textproc/dico/files/patch-lexique-version.dic'
X--- old/lexique/version.dic	Thu Jan  1 01:00:00 1970
X+++ new/lexique/version.dic	Wed Oct 11 04:40:35 2000
X@@ -0,0 +1,6 @@
X+Derniere mise a jour:   21 Octobre 1992
X+Realisee par        :   Rene Cougnenc
X+Jeu de caracteres   :   ISO 8859-1 ( 8 bits Latin-1) 
X+
X+   94836 mots
X++  39072 communes de France
END-of-textproc/dico/files/patch-lexique-version.dic
echo x - textproc/dico/files/patch-manuel-Makefile.am
sed 's/^X//' >textproc/dico/files/patch-manuel-Makefile.am << 'END-of-textproc/dico/files/patch-manuel-Makefile.am'
X--- old/manuel/Makefile.am	Thu Jan  1 01:00:00 1970
X+++ new/manuel/Makefile.am	Wed Oct 11 03:46:58 2000
X@@ -0,0 +1,7 @@
X+docdir = $(datadir)/doc/dico
X+doc_DATA = copying.doc
X+
X+man_MANS = dico.1
X+
X+EXTRA_DISTS =	install.doc.msdos manuel.txt msdos.doc readme.txt.msdos \
X+		unix.doc
END-of-textproc/dico/files/patch-manuel-Makefile.am
echo x - textproc/dico/files/patch-configure.in
sed 's/^X//' >textproc/dico/files/patch-configure.in << 'END-of-textproc/dico/files/patch-configure.in'
X--- old/configure.in	Thu Jan  1 01:00:00 1970
X+++ new/configure.in	Wed Oct 11 04:19:05 2000
X@@ -0,0 +1,4 @@
X+AC_INIT(sources/dico.c)
X+AM_INIT_AUTOMAKE(dico, 1.1)
X+AC_PROG_CC
X+AC_OUTPUT([Makefile sources/Makefile lexique/Makefile manuel/Makefile])
END-of-textproc/dico/files/patch-configure.in
echo x - textproc/dico/files/patch-sources-dico.c
sed 's/^X//' >textproc/dico/files/patch-sources-dico.c << 'END-of-textproc/dico/files/patch-sources-dico.c'
X--- old/sources/dico.c	Thu Mar 27 14:57:57 1997
X+++ new/sources/dico.c	Wed Oct 11 04:04:49 2000
X@@ -19,8 +19,8 @@
X     |                                                                       |
X     +-----------------------------------------------------------------------+
X */
X-#define LINUX
X 
X+#ifndef __FreeBSD__
X #ifndef LINUX
X #ifndef sony
X #ifndef MSDOS
X@@ -28,6 +28,7 @@
X #endif
X #endif
X #endif
X+#endif
X 
X #ifdef sony                             /* Sony News WorkStations        */
X #define UNIX
X@@ -42,6 +43,12 @@
X #define MYOS "LINUX" 
X #endif
X 
X+#ifdef __FreeBSD__                      /* FreeBSD Operating System        */ 
X+#define UNIX
X+#define ISO_CHARS
X+#define MYOS "FreeBSD" 
X+#endif
X+
X #ifdef MSDOS                            /* Systeme d'operation de disque */
X #define MYOS "MSDOS"                    /* Microsoft :-)                 */
X #endif
X@@ -51,8 +58,11 @@
X #define ISO_TERM    3
X #define COMMENT_CHAR 35                 /* '#' ligne de commentaire        */
X 
X-#define DICT_PATH "/usr/local/lib/dico"	 /* path par defaut unix/dos        */
X+#ifndef MSDOS
X+#define DICT_PATH "!!PREFIX!!/share/dico" /* path par defaut unix/dos        */
X+#else
X #define DOS_PATH  "lexique"              /* path par defaut Dos uniquement  */
X+#endif
X #define DICT_EXT ".dic"                  /* extension des fichiers dicos    */
X #define VERSION_FILE "version.dic"       /* fichier texte version dico      */
X 
X@@ -60,11 +70,13 @@
X #define OK    0
X #define MYVBUF 10240                     /* pour setvbuf() eventuel         */
X 
X+#ifndef __FreeBSD__
X #ifndef LINUX
X #ifndef sony
X #define MUST_HAVE_BUF                  /* Linux va moins vite avec setvbuf! */
X #endif
X #endif
X+#endif
X 
X typedef unsigned char byte;
X 
X@@ -147,7 +159,9 @@
X     if(argv[1][0] =='-')                      /* option ligne commande?*/
X         return   options( argv[1][1]  );
X 
X+#ifndef __FreeBSD__
X     mybanner();                               /* on dit bonjour...     */
X+#endif
X 
X     while( --argc)                            /* Allez, roulez !       */
X     {
X@@ -157,7 +171,9 @@
X             lookfor( argv[argc] );
X     }
X 
X+#ifndef __FreeBSD__
X     fprintf(stderr,"\nTrouve %ld mot%s\n",count, count > 1 ? "s" :"" );
X+#endif
X 
X        return OK ;
X }
X@@ -369,7 +385,9 @@
X     
X     StrLwr( pattern );  /* passe en minuscules comme le dico */
X     car = equival (pattern[0]);
X+#ifndef __FreeBSD__
X     fprintf(stderr, "Recherche %s dans la lettre %c... \n\n", pattern, car) ;
X+#endif
X 
X     sprintf(fname, "%s%s%c%s", dict_path, sep, pattern[0], DICT_EXT ) ;
X 
X@@ -395,7 +413,11 @@
X         if( fmatch(sbuf,pattern) )
X         {
X             translate( buf ); /* gere terminaux....   */
X+#ifndef __FreeBSD__
X             printf("\t%s\n", beautify(buf) );
X+#else
X+            printf("%s\n", beautify(buf) );
X+#endif
X             count ++ ;
X         }
X     }
X@@ -451,8 +473,11 @@
X             if( fmatch(sbuf,pattern) )
X             { 
X                 translate( buf ) ;
X-                buf[0] = ToUpper( buf[0] ) ;  
X+#ifndef __FreeBSD__
X                 printf("\t%s\n", beautify (buf) );
X+#else
X+                printf("%s\n", beautify (buf) );
X+#endif
X                 count ++ ;
X             } 
X         }
X@@ -474,7 +499,7 @@
X 
X mybanner()
X {
X-/*    printf("\nDICO V %s (%s) - R.Cougnenc 1992\n\n", __Version__, MYOS);*/
X+    printf("\nDICO V %s (%s) - R.Cougnenc 1992\n\n", __Version__, MYOS);
X }
X /*--------------------------------------------------------------------------*/
X 
X@@ -526,7 +551,9 @@
X    byte ville[50], code[6];
X    byte *r = ville;
X 
X+/* #ifndef __FreeBSD__ */
X    *str = ToUpper ( *str );                 /* Premiere lettre...     */
X+/* #endif */
X 
X     if( ! strchr( str, '\t') )               /* Cas du nom commun      */
X     {
END-of-textproc/dico/files/patch-sources-dico.c
echo x - textproc/dico/files/patch-sources-Makefile.am
sed 's/^X//' >textproc/dico/files/patch-sources-Makefile.am << 'END-of-textproc/dico/files/patch-sources-Makefile.am'
X--- old/sources/Makefile.am	Thu Jan  1 01:00:00 1970
X+++ new/sources/Makefile.am	Wed Oct 11 03:35:13 2000
X@@ -0,0 +1 @@
X+bin_PROGRAMS = dico
END-of-textproc/dico/files/patch-sources-Makefile.am
echo x - textproc/dico/pkg-comment
sed 's/^X//' >textproc/dico/pkg-comment << 'END-of-textproc/dico/pkg-comment'
XAn interactive dictionnary uniquely in french.
END-of-textproc/dico/pkg-comment
echo x - textproc/dico/pkg-descr
sed 's/^X//' >textproc/dico/pkg-descr << 'END-of-textproc/dico/pkg-descr'
X                "Le Dico" est une premiere Francaise !
X
XPlus   de  100.000  elements  comportant  noms  communs,  verbes,
Xadjectifs, conjugaisons et  pluriels  complexes,  ainsi  que  les
Xprincipaux CODES POSTAUX, FRANCAIS, soigneusement elabores par un
Xcollectif d'utilisateurs de  BBS  Francais,  et  mis  en  DOMAINE
XPUBLIC  au format ASCII ACCENTUE dans la mesure du possible, avec
Xsoit le jeu IBM pour MS/DOS, soit le  jeu  ISO  8859-1  pour  les
Xautres systemes.
X
XA French dictionary containing over 100,000 elements. These include
Xcommon nouns, verbs, adjectives, conjugations and plurals. It also
Xincludes post codes. The package features a fast spell checking
Xprogram.  The documentation is in FRENCH (no English) but it should
Xbe fairly obvious how to use it.
X
XWWW: http://www.montefiore.ulg.ac.be/cgi-bin-ulg/DICO.html
END-of-textproc/dico/pkg-descr
echo x - textproc/dico/pkg-plist
sed 's/^X//' >textproc/dico/pkg-plist << 'END-of-textproc/dico/pkg-plist'
X@name dico-1.1
X@cwd /usr/local
Xbin/dico
Xshare/dico/a.dic
Xshare/dico/b.dic
Xshare/dico/c.dic
Xshare/dico/d.dic
Xshare/dico/e.dic
Xshare/dico/f.dic
Xshare/dico/g.dic
Xshare/dico/h.dic
Xshare/dico/i.dic
Xshare/dico/j.dic
Xshare/dico/k.dic
Xshare/dico/l.dic
Xshare/dico/m.dic
Xshare/dico/n.dic
Xshare/dico/o.dic
Xshare/dico/p.dic
Xshare/dico/q.dic
Xshare/dico/r.dic
Xshare/dico/s.dic
Xshare/dico/t.dic
Xshare/dico/u.dic
Xshare/dico/v.dic
Xshare/dico/version.dic
Xshare/dico/w.dic
Xshare/dico/x.dic
Xshare/dico/y.dic
Xshare/dico/z.dic
X@dirrm share/dico
Xshare/doc/dico/README.TXT
Xshare/doc/dico/copying.doc
X@dirrm share/doc/dico
END-of-textproc/dico/pkg-plist
echo x - textproc/dico/distinfo
sed 's/^X//' >textproc/dico/distinfo << 'END-of-textproc/dico/distinfo'
XMD5 (le_dico.tgz) = df18e084ee2468a0dfc371f752bdbad0
END-of-textproc/dico/distinfo
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010110309.e9B39fU92249>