mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
Added Aiksaurus 1.2.1 recipe and patch
This commit is contained in:
84
app-text/aiksaurus/aiksaurus-1.2.1.recipe
Normal file
84
app-text/aiksaurus/aiksaurus-1.2.1.recipe
Normal file
@@ -0,0 +1,84 @@
|
||||
SUMMARY="A set of libraries and applications for Thesaurus"
|
||||
DESCRIPTION="Aiksaurus is a set of libraries and applications which provide a thesaurus (currently English only, based on Guttenburg's Moby thesaurus) using native GUI on several platforms:
|
||||
* UNIX (GTK+ & Qt)
|
||||
* Win32 & MacOSX (Cocoa).
|
||||
The core library itself is platform-independent. The principal language is C++, with some use of Cocoa/ObjC++; wrappers are provided for C and Cocoa/ObjC."
|
||||
|
||||
HOMEPAGE="http://aiksaurus.sourceforge.net"
|
||||
SRC_URI="http://switch.dl.sourceforge.net/project/aiksaurus/aiksaurus/1.2.1/aiksaurus-1.2.1.tar.gz"
|
||||
CHECKSUM_MD5="3eae03b7c49843ccc9262e52846ea6b4"
|
||||
|
||||
REVISION="1"
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2001-2002 Jared Davis
|
||||
2001 Michael D. Pritchett
|
||||
"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
aiksaurus$secondaryArchSuffix = $portVersion
|
||||
lib:libAiksaurus_1.2$secondaryArchSuffix = $portVersion
|
||||
cmd:aiksaurus$secondaryArchSuffix = $portVersion
|
||||
cmd:caiksaurus$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCHES="aiksaurus-1.2.1.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
# Automake complains about NEWS missing
|
||||
touch NEWS
|
||||
|
||||
libtoolize --force --copy --install
|
||||
|
||||
# libtoolize is going to ask us to append the contents
|
||||
# of some files to aclocal.m4
|
||||
|
||||
for i in m4/{libtool,lt{options,sugar,version,~obsolete}}.m4; do cat $i >> aclocal.m4; done
|
||||
|
||||
aclocal -I m4
|
||||
autoconf
|
||||
automake --add-missing
|
||||
|
||||
runConfigure ./configure --without-gtk --datadir=$dataDir
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libAiksaurus
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
aiksaurus${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:aiksaurus$secondaryArchSuffix = $portVersion
|
||||
devel:libAiksaurus$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
aiksaurus$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
67
app-text/aiksaurus/patches/aiksaurus-1.2.1.patch
Normal file
67
app-text/aiksaurus/patches/aiksaurus-1.2.1.patch
Normal file
@@ -0,0 +1,67 @@
|
||||
diff -ur aiksaurus-1.2.1/base/aiksaurus.t.cpp aiksaurus-1.2.1-haiku/base/aiksaurus.t.cpp
|
||||
--- aiksaurus-1.2.1/base/aiksaurus.t.cpp 2003-06-27 01:44:38.003407872 +0000
|
||||
+++ aiksaurus-1.2.1-haiku/base/aiksaurus.t.cpp 2013-12-30 08:47:08.949747712 +0000
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "config.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
+#include <stdlib.h>
|
||||
using namespace std;
|
||||
using AiksaurusImpl::AsciiCompare;
|
||||
|
||||
diff -ur aiksaurus-1.2.1/configure.ac aiksaurus-1.2.1-haiku/configure.ac
|
||||
--- aiksaurus-1.2.1/configure.ac 2004-06-12 04:34:05.017563648 +0000
|
||||
+++ aiksaurus-1.2.1-haiku/configure.ac 2013-12-29 23:53:53.963903488 +0000
|
||||
@@ -1,5 +1,6 @@
|
||||
AC_INIT([aiksaurus],[1.2],[http://aiksaurus.sourceforge.net/])
|
||||
AC_CONFIG_SRCDIR([base/Aiksaurus.h])
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
# Aiksaurus, version 1.2.0
|
||||
|
||||
@@ -47,19 +48,19 @@
|
||||
|
||||
AC_SUBST(LT_RELEASE)
|
||||
|
||||
-LT_CURRENT=`expr $AIK_MICRO_VERSION - $AIK_INTERFACE_AGE`
|
||||
-LT_REVISION=$AIK_INTERFACE_AGE
|
||||
-LT_AGE=`expr $AIK_BINARY_AGE - $AIK_INTERFACE_AGE`
|
||||
+m4_define(LT_CURRENT,`expr $AIK_MICRO_VERSION - $AIK_INTERFACE_AGE`)
|
||||
+m4_define(LT_REVISION,$AIK_INTERFACE_AGE)
|
||||
+m4_define(LT_AGE,`expr $AIK_BINARY_AGE - $AIK_INTERFACE_AGE`)
|
||||
|
||||
-LT_AIK_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
|
||||
+LT_AIK_VERSION_INFO="LT_CURRENT():LT_REVISION():LT_AGE()"
|
||||
|
||||
AC_SUBST(LT_AIK_VERSION_INFO)
|
||||
|
||||
-LT_CURRENT=`expr $AIK_MICRO_VERSION - $AIKGTK_INTERFACE_AGE`
|
||||
-LT_REVISION=$AIKGTK_INTERFACE_AGE
|
||||
-LT_AGE=`expr $AIKGTK_BINARY_AGE - $AIKGTK_INTERFACE_AGE`
|
||||
+m4_define(LT_CURRENT,`expr $AIK_MICRO_VERSION - $AIKGTK_INTERFACE_AGE`)
|
||||
+m4_define(LT_REVISION,$AIKGTK_INTERFACE_AGE)
|
||||
+m4_define(LT_AGE,`expr $AIKGTK_BINARY_AGE - $AIKGTK_INTERFACE_AGE`)
|
||||
|
||||
-LT_AIKGTK_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
|
||||
+LT_AIKGTK_VERSION_INFO="LT_CURRENT():LT_REVISION():LT_AGE()"
|
||||
|
||||
AC_SUBST(LT_AIKGTK_VERSION_INFO)
|
||||
|
||||
@@ -69,7 +70,7 @@
|
||||
|
||||
# Specify a configuration file
|
||||
#
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
|
||||
AH_TOP([
|
||||
#ifndef AIKSAURUS_CONFIG_H
|
||||
diff -ur aiksaurus-1.2.1/Makefile.am aiksaurus-1.2.1-haiku/Makefile.am
|
||||
--- aiksaurus-1.2.1/Makefile.am 2003-06-15 10:17:42.018350080 +0000
|
||||
+++ aiksaurus-1.2.1-haiku/Makefile.am 2013-12-29 23:53:53.966000640 +0000
|
||||
@@ -27,3 +27,5 @@
|
||||
ac-helpers/pkg-config/pkg.m4 \
|
||||
aiksaurus.spec.in \
|
||||
aiksaurus.spec
|
||||
+
|
||||
+ACLOCAL_AMFLAGS = -I m4
|
||||
Reference in New Issue
Block a user