1SUMMARY="Line editing library for UNIX call compatible with the FSF readline"
2DESCRIPTION="This is a line editing library for UNIX. It can be linked into \
3almost any program to provide command line editing and history. It is call \
4compatible with the FSF readline library, but is a fraction of the size \
5(and offers fewer features)."
6HOMEPAGE="https://troglobit.com/projects/editline/"
7COPYRIGHT="1992,1993 Simmule Turner and Rich Salz"
8LICENSE="Apache v2"
9REVISION="2"
10SOURCE_URI="https://github.com/troglobit/editline/releases/download/$portVersion/editline-$portVersion.tar.xz"
11CHECKSUM_SHA256="df223b3333a545fddbc67b49ded3d242c66fadf7a04beb3ada20957fcd1ffc0e"
12SOURCE_DIR="editline-$portVersion"
13
14ARCHITECTURES="all !x86_gcc2 ?x86 ?sparc ?m68k"
15SECONDARY_ARCHITECTURES="x86"
16
17libVersion="1.0.2"
18libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
19
20PROVIDES="
21	libeditline$secondaryArchSuffix = $portVersion
22	lib:libeditline$secondaryArchSuffix = $libVersionCompat
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	"
27
28PROVIDES_devel="
29	libeditline${secondaryArchSuffix}_devel = $portVersion
30	devel:libeditline$secondaryArchSuffix = $libVersionCompat
31	"
32REQUIRES_devel="
33	libeditline$secondaryArchSuffix == $portVersion base
34	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	"
39BUILD_PREREQUIRES="
40	cmd:aclocal
41	cmd:autoreconf
42	cmd:awk
43	cmd:gcc$secondaryArchSuffix
44	cmd:libtoolize$secondaryArchSuffix
45	cmd:make
46	cmd:makeinfo
47	"
48
49defineDebugInfoPackage libeditline$secondaryArchSuffix \
50	$libDir/libeditline.so.$libVersion
51
52BUILD()
53{
54	autoreconf -fi
55	runConfigure ./configure --disable-static
56	make $jobArgs
57}
58
59INSTALL()
60{
61	make install
62	rm $libDir/libeditline.la
63	prepareInstalledDevelLib libeditline
64	fixPkgconfig
65	packageEntries devel $developDir
66}
67
68TEST()
69{
70	make check $jobArgs
71}
72