aboutsummaryrefslogtreecommitdiff
path: root/devel/ixlib
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-03 22:51:53 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-03 22:51:53 +0000
commit6b15d3c17b65b6934429b27062c96e89f9026c96 (patch)
tree99b4dc2416439af1e8acb8e71d9b91f07403ef11 /devel/ixlib
parent8c4d5a6fac9517a55ee125022f8a3485ae6272eb (diff)
downloadports-6b15d3c17b65b6934429b27062c96e89f9026c96.tar.gz
ports-6b15d3c17b65b6934429b27062c96e89f9026c96.zip
Notes
Diffstat (limited to 'devel/ixlib')
-rw-r--r--devel/ixlib/Makefile6
-rw-r--r--devel/ixlib/files/patch-src::ixlib_garbage.hh227
-rw-r--r--devel/ixlib/files/patch-src::ixlib_numeric.hh67
-rw-r--r--devel/ixlib/files/patch-src::ixlib_re.hh49
-rw-r--r--devel/ixlib/files/patch-src::ixlib_re_impl.hh69
-rw-r--r--devel/ixlib/files/patch-src::lex.xml.cc16
-rw-r--r--devel/ixlib/files/patch-src::re.cc11
-rw-r--r--devel/ixlib/pkg-plist1
8 files changed, 434 insertions, 12 deletions
diff --git a/devel/ixlib/Makefile b/devel/ixlib/Makefile
index 5a7e7fe3e61a..57d07ccea689 100644
--- a/devel/ixlib/Makefile
+++ b/devel/ixlib/Makefile
@@ -8,7 +8,7 @@
PORTNAME= ixlib
PORTVERSION= 0.96.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -27,8 +27,8 @@ USE_LDCONFIG= yes
.include <bsd.port.pre.mk>
-.if ${ARCH} != "i386" || ${OSVERSION} >= 500000
-BROKEN= Does not compile on !i386 or on FreeBSD >= 5.x
+.if ${ARCH} != "i386"
+BROKEN= Does not compile on !i386
.endif
pre-configure:
diff --git a/devel/ixlib/files/patch-src::ixlib_garbage.hh b/devel/ixlib/files/patch-src::ixlib_garbage.hh
new file mode 100644
index 000000000000..5e2a03071b51
--- /dev/null
+++ b/devel/ixlib/files/patch-src::ixlib_garbage.hh
@@ -0,0 +1,227 @@
+--- src/ixlib_garbage.hh.orig Tue Jun 19 16:16:29 2001
++++ src/ixlib_garbage.hh Fri Dec 1 19:56:04 2006
+@@ -126,24 +126,24 @@
+ // compiler generates one, which is *ahem* - fatal
+ ref(ref const &src)
+ : ref_base<T>(src) {
+- reference_manager_keeper<T_Managed>::Manager.addReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addReference(this->Instance);
+ }
+ template<class T2>
+ ref(ref<T2,T_Managed> const &src)
+ : ref_base<T>(src.get()) {
+- reference_manager_keeper<T_Managed>::Manager.addReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addReference(this->Instance);
+ }
+ template<class T2>
+ ref(no_free_ref<T2,T_Managed> const &src)
+ : ref_base<T>(src.get()) {
+- reference_manager_keeper<T_Managed>::Manager.addReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addReference(this->Instance);
+ }
+ ref(T *instance = NULL)
+ : ref_base<T>(instance) {
+- reference_manager_keeper<T_Managed>::Manager.addReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addReference(this->Instance);
+ }
+ ~ref() {
+- reference_manager_keeper<T_Managed>::Manager.freeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.freeReference(this->Instance);
+ }
+
+ ref &operator=(ref const &src) {
+@@ -157,20 +157,20 @@
+
+ // methods
+ void release() {
+- reference_manager_keeper<T_Managed>::Manager.freeReference(Instance);
+- Instance = NULL;
++ reference_manager_keeper<T_Managed>::Manager.freeReference(this->Instance);
++ this->Instance = NULL;
+ }
+ void set(T *instance) {
+- if (instance == Instance) return;
++ if (instance == this->Instance) return;
+
+- reference_manager_keeper<T_Managed>::Manager.freeReference(Instance);
+- Instance = instance;
+- reference_manager_keeper<T_Managed>::Manager.addReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.freeReference(this->Instance);
++ this->Instance = instance;
++ reference_manager_keeper<T_Managed>::Manager.addReference(this->Instance);
+ }
+ T *releaseFromGCArena() {
+- T *oldinst = Instance;
+- reference_manager_keeper<T_Managed>::Manager.forgetReference(Instance);
+- Instance = NULL;
++ T *oldinst = this->Instance;
++ reference_manager_keeper<T_Managed>::Manager.forgetReference(this->Instance);
++ this->Instance = NULL;
+ return oldinst;
+ }
+ };
+@@ -200,24 +200,24 @@
+ // compiler generates one, which is *ahem* - fatal
+ no_free_ref(no_free_ref const &src)
+ : ref_base<T>(src) {
+- reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(this->Instance);
+ }
+ template<class T2>
+ no_free_ref(ref<T2,T_Managed> const &src)
+ : ref_base<T>(src.get()) {
+- reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(this->Instance);
+ }
+ template<class T2>
+ no_free_ref(no_free_ref<T2,T_Managed> const &src)
+ : ref_base<T>(src.get()) {
+- reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(this->Instance);
+ }
+ no_free_ref(T *instance = NULL)
+ : ref_base<T>(instance) {
+- reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(this->Instance);
+ }
+ ~no_free_ref() {
+- reference_manager_keeper<T_Managed>::Manager.removeNoFreeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.removeNoFreeReference(this->Instance);
+ }
+
+ // assignment
+@@ -232,20 +232,20 @@
+
+ // methods
+ void release() {
+- reference_manager_keeper<T_Managed>::Manager.removeNoFreeReference(Instance);
+- Instance = NULL;
++ reference_manager_keeper<T_Managed>::Manager.removeNoFreeReference(this->Instance);
++ this->Instance = NULL;
+ }
+ void set(T *instance) {
+- if (instance == Instance) return;
++ if (instance == this->Instance) return;
+
+- reference_manager_keeper<T_Managed>::Manager.removeNoFreeReference(Instance);
+- Instance = instance;
+- reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(Instance);
++ reference_manager_keeper<T_Managed>::Manager.removeNoFreeReference(this->Instance);
++ this->Instance = instance;
++ reference_manager_keeper<T_Managed>::Manager.addNoFreeReference(this->Instance);
+ }
+ T *releaseFromGCArena() {
+- T *oldinst = Instance;
+- reference_manager_keeper<T_Managed>::Manager.forgetReference(Instance);
+- Instance = NULL;
++ T *oldinst = this->Instance;
++ reference_manager_keeper<T_Managed>::Manager.forgetReference(this->Instance);
++ this->Instance = NULL;
+ return oldinst;
+ }
+ };
+@@ -265,14 +265,14 @@
+ public:
+ dynamic_ref(dynamic_ref const &src)
+ : ref_base<T>(src),Manager(src.Manager) {
+- Manager.addReference(Instance);
++ Manager.addReference(this->Instance);
+ }
+ dynamic_ref(reference_manager<T> &mgr,T *instance = NULL)
+ : ref_base<T>(instance),Manager(mgr) {
+- Manager.addReference(Instance);
++ Manager.addReference(this->Instance);
+ }
+ ~dynamic_ref() {
+- Manager.freeReference(Instance);
++ Manager.freeReference(this->Instance);
+ }
+
+ // assignment
+@@ -287,20 +287,20 @@
+
+ // methods
+ void release() {
+- Manager.freeReference(Instance);
+- Instance = NULL;
++ Manager.freeReference(this->Instance);
++ this->Instance = NULL;
+ }
+ void set(T *instance) {
+- if (instance == Instance) return;
++ if (instance == this->Instance) return;
+
+- Manager.freeReference(Instance);
+- Instance = instance;
+- Manager.addReference(Instance);
++ Manager.freeReference(this->Instance);
++ this->Instance = instance;
++ Manager.addReference(this->Instance);
+ }
+ T *releaseFromGCArena() {
+- T *oldinst = Instance;
+- Manager.forgetReference(Instance);
+- Instance = NULL;
++ T *oldinst = this->Instance;
++ Manager.forgetReference(this->Instance);
++ this->Instance = NULL;
+ return oldinst;
+ }
+ };
+@@ -330,14 +330,14 @@
+ public:
+ no_free_dynamic_ref(no_free_dynamic_ref const &src)
+ : ref_base<T>(src),Manager(src.Manager) {
+- Manager.addNoFreeReference(Instance);
++ Manager.addNoFreeReference(this->Instance);
+ }
+ no_free_dynamic_ref(reference_manager<T> &mgr,T *instance = NULL)
+ : ref_base<T>(instance),Manager(mgr) {
+- Manager.addNoFreeReference(Instance);
++ Manager.addNoFreeReference(this->Instance);
+ }
+ ~no_free_dynamic_ref() {
+- Manager.removeNoFreeReference(Instance);
++ Manager.removeNoFreeReference(this->Instance);
+ }
+
+ // assignment
+@@ -352,20 +352,20 @@
+
+ // methods
+ void release() {
+- Manager.removeNoFreeReference(Instance);
+- Instance = NULL;
++ Manager.removeNoFreeReference(this->Instance);
++ this->Instance = NULL;
+ }
+ void set(T *instance) {
+- if (instance == Instance) return;
++ if (instance == this->Instance) return;
+
+- Manager.removeNoFreeReference(Instance);
+- Instance = instance;
+- Manager.addNoFreeReference(Instance);
++ Manager.removeNoFreeReference(this->Instance);
++ this->Instance = instance;
++ Manager.addNoFreeReference(this->Instance);
+ }
+ T *releaseFromGCArena() {
+- T *oldinst = Instance;
+- Manager.forgetReference(Instance);
+- Instance = NULL;
++ T *oldinst = this->Instance;
++ Manager.forgetReference(this->Instance);
++ this->Instance = NULL;
+ return oldinst;
+ }
+ };
+@@ -482,7 +482,7 @@
+
+
+ #define IXLIB_GARBAGE_DECLARE_MANAGER(TYPE) \
+- ixion::reference_manager<TYPE> ixion::reference_manager_keeper<TYPE>::Manager;
++ template <> ixion::reference_manager<TYPE> ixion::reference_manager_keeper<TYPE>::Manager = ixion::reference_manager<TYPE>();
+ }
+
+
diff --git a/devel/ixlib/files/patch-src::ixlib_numeric.hh b/devel/ixlib/files/patch-src::ixlib_numeric.hh
new file mode 100644
index 000000000000..f932947824a8
--- /dev/null
+++ b/devel/ixlib/files/patch-src::ixlib_numeric.hh
@@ -0,0 +1,67 @@
+--- src/ixlib_numeric.hh.orig Thu Mar 22 16:16:25 2001
++++ src/ixlib_numeric.hh Thu Nov 30 23:11:52 2006
+@@ -67,56 +67,56 @@
+
+
+ // Primitive inlines ---------------------------------------------------------
+- inline signed short ixion::sgn(signed long value) {
++ inline signed short sgn(signed long value) {
+ return (value<0) ? -1 : ( (value>0) ? 1 : 0);
+ }
+
+
+
+
+- inline bool ixion::getBit(unsigned long value,char bit) {
++ inline bool getBit(unsigned long value,char bit) {
+ return (value >> bit) & 1;
+ }
+
+
+
+
+- inline TUnsigned8 ixion::hiByte(TUnsigned16 value) {
++ inline TUnsigned8 hiByte(TUnsigned16 value) {
+ return value >> 8;
+ }
+
+
+
+
+- inline TUnsigned16 ixion::hiWord(TUnsigned32 value) {
++ inline TUnsigned16 hiWord(TUnsigned32 value) {
+ return value >> 16;
+ }
+
+
+
+
+- inline TUnsigned8 ixion::loByte(TUnsigned16 value) {
++ inline TUnsigned8 loByte(TUnsigned16 value) {
+ return value & 0xff;
+ }
+
+
+
+
+- inline TUnsigned16 ixion::loWord(TUnsigned32 value) {
++ inline TUnsigned16 loWord(TUnsigned32 value) {
+ return value & 0xffff;
+ }
+
+
+
+
+- inline TUnsigned16 ixion::makeWord(TUnsigned8 hi,TUnsigned8 lo) {
++ inline TUnsigned16 makeWord(TUnsigned8 hi,TUnsigned8 lo) {
+ return (TUnsigned16) hi << 8 | lo;
+ }
+
+
+
+
+- inline TUnsigned32 ixion::makeDWord(TUnsigned16 hi,TUnsigned16 lo) {
++ inline TUnsigned32 makeDWord(TUnsigned16 hi,TUnsigned16 lo) {
+ return (TUnsigned32) hi << 16 | lo;
+ }
+ }
diff --git a/devel/ixlib/files/patch-src::ixlib_re.hh b/devel/ixlib/files/patch-src::ixlib_re.hh
index 95c921082de0..9e845ecef211 100644
--- a/devel/ixlib/files/patch-src::ixlib_re.hh
+++ b/devel/ixlib/files/patch-src::ixlib_re.hh
@@ -1,5 +1,5 @@
---- src/ixlib_re.hh.orig Fri Nov 28 11:46:14 2003
-+++ src/ixlib_re.hh Fri Nov 28 11:53:24 2003
+--- src/ixlib_re.hh.orig Tue Jun 19 16:16:29 2001
++++ src/ixlib_re.hh Fri Dec 1 18:36:04 2006
@@ -163,7 +163,7 @@
struct backtrack_stack_entry {
@@ -9,3 +9,48 @@
};
public:
+@@ -210,7 +210,7 @@
+ class any_matcher : public matcher {
+ public:
+ any_matcher() {
+- MatchLength = 1;
++ this->MatchLength = 1;
+ }
+
+ matcher *duplicate() const;
+@@ -229,7 +229,7 @@
+ class start_matcher : public matcher {
+ public:
+ start_matcher() {
+- MatchLength = 0;
++ this->MatchLength = 0;
+ }
+
+ matcher *duplicate() const;
+@@ -246,7 +246,7 @@
+ class end_matcher : public matcher {
+ public:
+ end_matcher() {
+- MatchLength = 0;
++ this->MatchLength = 0;
+ }
+
+ matcher *duplicate() const;
+@@ -263,7 +263,7 @@
+ class backref_open_matcher : public matcher {
+ public:
+ backref_open_matcher() {
+- MatchLength = 0;
++ this->MatchLength = 0;
+ }
+
+ matcher *duplicate() const;
+@@ -280,7 +280,7 @@
+ class backref_close_matcher : public matcher {
+ public:
+ backref_close_matcher() {
+- MatchLength = 0;
++ this->MatchLength = 0;
+ }
+
+ matcher *duplicate() const;
diff --git a/devel/ixlib/files/patch-src::ixlib_re_impl.hh b/devel/ixlib/files/patch-src::ixlib_re_impl.hh
index e3fc5d2599dc..ff775c1ce2f8 100644
--- a/devel/ixlib/files/patch-src::ixlib_re_impl.hh
+++ b/devel/ixlib/files/patch-src::ixlib_re_impl.hh
@@ -1,5 +1,5 @@
---- src/ixlib_re_impl.hh.orig Fri Nov 28 11:43:40 2003
-+++ src/ixlib_re_impl.hh Fri Nov 28 12:55:23 2003
+--- src/ixlib_re_impl.hh.orig Tue Jun 19 16:16:29 2001
++++ src/ixlib_re_impl.hh Fri Dec 1 18:38:10 2006
@@ -38,7 +38,7 @@
@@ -36,7 +36,42 @@
quantifier *dupe = new quantifier();
dupe->copy(this);
return dupe;
-@@ -328,7 +328,7 @@
+@@ -239,7 +239,7 @@
+ if (quant_min == 0) quant_min = 1;
+
+ TSize max_count = candidate.size() - at;
+- if (Next) max_count -= Next->minimumSubsequentMatchLength();
++ if (this->Next) max_count -= this->Next->minimumSubsequentMatchLength();
+ max_count = max_count/quant_min + 1;
+
+ if (MaxValid) max_count = NUM_MIN(max_count,MaxCount);
+@@ -278,7 +278,7 @@
+ }
+
+ if (successful_indices.size()) {
+- MatchLength = successful_indices.top().Index - at;
++ this->MatchLength = successful_indices.top().Index - at;
+ return true;
+ }
+ else return false;
+@@ -286,7 +286,7 @@
+ else {
+ for (TSize c = 0;c <= remcount;c++) {
+ if (matchNext(brstack,candidate,idx)) {
+- MatchLength = idx-at;
++ this->MatchLength = idx-at;
+ return true;
+ }
+ // following part runs once too much, effectively:
+@@ -321,14 +321,14 @@
+ template<class T>
+ ixion::regex<T>::sequence_matcher::sequence_matcher(T const &matchstr)
+ : MatchStr(matchstr) {
+- MatchLength = MatchStr.size();
++ this->MatchLength = MatchStr.size();
+ }
+
+
template<class T>
@@ -135,7 +170,7 @@
matcher::setNext(next);
Connector.setNext(next,false);
}
-@@ -524,7 +524,7 @@
+@@ -524,13 +524,13 @@
template<class T>
bool ixion::regex<T>::alternative_matcher::match(backref_stack &brstack,T const &candidate,TIndex at) {
@@ -143,10 +178,21 @@
+ typename std::vector<matcher *>::iterator first = AltList.begin(),last = AltList.end();
while (first != last) {
if ((*first)->match(brstack,candidate,at)) {
- MatchLength = 0;
-@@ -548,7 +548,7 @@
+- MatchLength = 0;
++ this->MatchLength = 0;
+ matcher const *object = *first;
+ while (object != &Connector) {
+- MatchLength += object->getMatchLength();
++ this->MatchLength += object->getMatchLength();
+ object = object->getNext();
+ }
+ return true;
+@@ -546,9 +546,9 @@
+ template<class T>
+ void ixion::regex<T>::alternative_matcher::copy(alternative_matcher const *src) {
super::copy(src);
- Connector.setNext(Next,false);
+- Connector.setNext(Next,false);
++ Connector.setNext(this->Next,false);
- FOREACH_CONST(first,src->AltList,alt_list)
+ FOREACH_CONST_T(first,src->AltList,alt_list)
@@ -162,3 +208,12 @@
backref_matcher *dupe = new backref_matcher(Backref);
dupe->copy(this);
return dupe;
+@@ -577,7 +577,7 @@
+ template<class T>
+ bool ixion::regex<T>::backref_matcher::match(backref_stack &brstack,T const &candidate,TIndex at) {
+ T matchstr = brstack.get(Backref,candidate);
+- MatchLength = matchstr.size();
++ this->MatchLength = matchstr.size();
+
+ if (at+matchstr.size() > candidate.size()) return false;
+ return (T(candidate.begin()+at,candidate.begin()+at+matchstr.size()) == matchstr) &&
diff --git a/devel/ixlib/files/patch-src::lex.xml.cc b/devel/ixlib/files/patch-src::lex.xml.cc
new file mode 100644
index 000000000000..92560e346a05
--- /dev/null
+++ b/devel/ixlib/files/patch-src::lex.xml.cc
@@ -0,0 +1,16 @@
+--- src/lex.xml.cc.orig Tue Oct 23 12:24:43 2001
++++ src/lex.xml.cc Fri Dec 1 18:57:06 2006
+@@ -24,9 +24,12 @@
+ #ifdef __cplusplus
+
+ #include <stdlib.h>
+-#include <fstream>
++#include <iostream>
+ using std::istream;
+ using std::ostream;
++using std::cin;
++using std::cout;
++using std::cerr;
+ #include <unistd.h>
+
+ /* Use prototypes in function declarations. */
diff --git a/devel/ixlib/files/patch-src::re.cc b/devel/ixlib/files/patch-src::re.cc
new file mode 100644
index 000000000000..f97bbe2a870a
--- /dev/null
+++ b/devel/ixlib/files/patch-src::re.cc
@@ -0,0 +1,11 @@
+--- src/re.cc.orig Tue Jun 19 16:16:29 2001
++++ src/re.cc Fri Dec 1 18:37:32 2006
+@@ -26,7 +26,7 @@
+
+
+ // Template instantiations ----------------------------------------------------
+-template regex<string>;
++template class regex<string>;
+
+
+
diff --git a/devel/ixlib/pkg-plist b/devel/ixlib/pkg-plist
index aa3177e84be0..4be03b9cdbc0 100644
--- a/devel/ixlib/pkg-plist
+++ b/devel/ixlib/pkg-plist
@@ -27,6 +27,7 @@ include/ixlib_textfile.hh
include/ixlib_token_lex.hh
include/ixlib_xml.hh
lib/libixion.a
+lib/libixion.la
lib/libixion.so
lib/libixion.so.6
share/aclocal/ixlib.m4