mythes-1.2.4.recipe revision 8ecebb8c
1SUMMARY="A simple thesaurus"
2DESCRIPTION="MyThes is a simple thesaurus that used a structured text \
3data file and an index file with binary search to lookup words \
4and phrases and return information on part of speech, \
5meanings, and synonyms.
6
7- written in C++ to make it easier to interface with \
8LibreOffice, OpenOffice, AbiWord, Pspell, etc
9- it is stateless, uses no static variables and \
10should be completely reentrant with no ifdefs
11- it compiles with -ansi and -pedantic and -Wall \
12with no warnigns so it shouldbe quite portable
13- it uses a simple perl program to read the structured \
14text file and create the index needed for binary \
15searching
16- it is very simple with *lots* of comments. \
17The main \"smarts\" are in the structure of the \
18text file that makes up the thesaurus data
19- It comes with a ready-to-go structured thesaurus \
20data file for en_US extracted from the WordNet-2.0 data.
21- Please see WordNet_license.txt and WordNet_readme.txt \
22for more information on the very useful project!
23- See http://www.danielnaber.de/wn2ooo/ for utilities to \
24regenerate an up to date English thesaurus from the most \
25recent WordNet data."
26HOMEPAGE="https://sourceforge.net/projects/hunspell/files/MyThes/1.2.4"
27COPYRIGHT="1994-2009 Free Software Foundation, Inc."
28LICENSE="BSD (2-clause)"
29REVISION="4"
30SOURCE_URI="http://prdownloads.sf.net/hunspell/mythes-1.2.4.tar.gz"
31CHECKSUM_SHA256="1e81f395d8c851c3e4e75b568e20fa2fa549354e75ab397f9de4b0e0790a305f"
32
33ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
34SECONDARY_ARCHITECTURES="x86"
35
36libVersion="1.2.4"
37libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
38
39PROVIDES="
40	mythes$secondaryArchSuffix = $portVersion
41	cmd:mythes = $portVersion
42	cmd:th_gen_idx.pl
43	lib:libmythes_1.2$secondaryArchSuffix = $libVersionCompat
44	"
45REQUIRES="
46	haiku$secondaryArchSuffix
47	cmd:perl
48	lib:libhunspell_1.7$secondaryArchSuffix
49	"
50
51PROVIDES_devel="
52	mythes${secondaryArchSuffix}_devel = $portVersion
53	devel:libmythes_1.2$secondaryArchSuffix = $libVersion
54	"
55REQUIRES_devel="
56	mythes$secondaryArchSuffix == $portVersion base
57	"
58
59BUILD_REQUIRES="
60	haiku${secondaryArchSuffix}_devel
61	devel:libhunspell_1.7$secondaryArchSuffix
62	"
63BUILD_PREREQUIRES="
64	cmd:awk
65	cmd:gcc$secondaryArchSuffix
66	cmd:make
67	cmd:pkg_config$secondaryArchSuffix
68	"
69
70BUILD()
71{
72	runConfigure --omit-dirs binDir ./configure \
73		--bindir=$prefix/bin
74	make $jobArgs
75}
76
77INSTALL()
78{
79	make install
80
81	prepareInstalledDevelLib \
82		libmythes-1.2
83	fixPkgconfig
84
85	packageEntries devel \
86		$developDir
87}
88