summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürgen Hötzel <juergen@archlinux.org>2007-02-01 19:47:39 +0000
committerJürgen Hötzel <juergen@archlinux.org>2007-02-01 19:47:39 +0000
commite70a3e80748ffe70c32f2c91998841aa81bb03a3 (patch)
tree65b76423654ff8f22c23b6fee389c0d7fafb87e9
parentcdaed9221d9614c4c43103d79f8b53b916d80d86 (diff)
downloadpacman-e70a3e80748ffe70c32f2c91998841aa81bb03a3.tar.xz
* removal of swig generated bindings
-rw-r--r--bindings/alpm.i23
-rw-r--r--bindings/java/.cvsignore5
-rw-r--r--bindings/java/Makefile.in48
-rw-r--r--bindings/perl/.cvsignore5
-rw-r--r--bindings/perl/Makefile.in42
-rw-r--r--bindings/python/.cvsignore6
-rw-r--r--bindings/python/Makefile.in49
-rw-r--r--configure.ac79
8 files changed, 0 insertions, 257 deletions
diff --git a/bindings/alpm.i b/bindings/alpm.i
deleted file mode 100644
index c2d04dd7..00000000
--- a/bindings/alpm.i
+++ /dev/null
@@ -1,23 +0,0 @@
-#if defined(SWIGPERL)
-%module "Alpm::Core"
-#else
-%module alpm
-#endif
-%include "cpointer.i"
-
-/* Wrap a class interface around a "long *" */
-%pointer_class(long, longp);
-
-/* Create casting functions */
-
-%pointer_cast(void *, long *, void_to_long);
-%pointer_cast(void *, char *, void_to_char);
-%pointer_cast(void *, unsigned long, void_to_unsigned_long);
-%pointer_cast(void *, alpm_list_t *, void_to_pmlist);
-%pointer_cast(void *, pmpkg_t *, void_to_pmpkg);
-%pointer_cast(void *, pmgrp_t *, void_to_pmgrp);
-%pointer_cast(void *, pmsyncpkg_t *, void_to_pmsyncpkg);
-%pointer_cast(void *, pmdb_t *, void_to_pmdb);
-%pointer_cast(void *, pmconflict_t *, void_to_pmconflict);
-
-%include "alpm.h"
diff --git a/bindings/java/.cvsignore b/bindings/java/.cvsignore
deleted file mode 100644
index a2031861..00000000
--- a/bindings/java/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-Makefile
-*.class
-*.java
-alpm.i
-*alpm*
diff --git a/bindings/java/Makefile.in b/bindings/java/Makefile.in
deleted file mode 100644
index a97f2889..00000000
--- a/bindings/java/Makefile.in
+++ /dev/null
@@ -1,48 +0,0 @@
-top_srcdir = @top_srcdir@
-prefix = @prefix@
-
-CFLAGS = $(subst -Werror,,@CFLAGS@) -I$(JAVA_HOME)/include/ -I$(JAVA_HOME)/include/linux/
-CFLAGS += -fno-strict-aliasing # see the swig docs
-ifeq ($(shell arch),x86_64)
-CFLAGS += -fPIC
-endif
-LDFLAGS += -L$(top_srcdir)/lib/libalpm/.libs -lalpm
-
-all: libalpm_java.so alpm.jar
-
-libalpm_java.so: alpm_java_wrap.o
- $(CC) -shared $^ -o $@ $(LDFLAGS)
-
-alpm_java_wrap.o: alpm_java_wrap.c
- $(CC) $(CFLAGS) -c -o $@ -include alpm.h $^
-
-alpm_java_wrap.c:
- cp $(top_srcdir)/lib/libalpm/alpm.h ./
- cp $(top_srcdir)/bindings/alpm.i alpm_java.i
- swig -java alpm_java.i
-
-alpm.class: alpm.java
- javac *.java
-
-alpm.jar: alpm.class
- jar -cf alpm.jar *.class
-
-alpm.java: alpm_java_wrap.c
-
-install: install-so install-jar
-
-install-so: libalpm_java.so
- mkdir -p $(DESTDIR)$(prefix)/lib
- install $^ $(DESTDIR)$(prefix)/lib
-
-install-jar: alpm.jar
- mkdir -p $(DESTDIR)$(prefix)/share/java
- install -m644 $^ $(DESTDIR)$(prefix)/share/java
-
-clean:
- rm -f *alpm* *.java *.class
-
-distclean: clean
- rm -f Makefile
-
-check:
diff --git a/bindings/perl/.cvsignore b/bindings/perl/.cvsignore
deleted file mode 100644
index 27349e9d..00000000
--- a/bindings/perl/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-Makefile
-Core*
-alpm.i
-alpm.h
-alpm_wrap*
diff --git a/bindings/perl/Makefile.in b/bindings/perl/Makefile.in
deleted file mode 100644
index 6f7e8268..00000000
--- a/bindings/perl/Makefile.in
+++ /dev/null
@@ -1,42 +0,0 @@
-top_srcdir = @top_srcdir@
-prefix = @prefix@
-
-CFLAGS = $(subst -Werror,,@CFLAGS@)
-CFLAGS += $(shell perl -MExtUtils::Embed -e ccopts)
-CFLAGS += -I$(top_srcdir)/lib/libalpm
-ifeq ($(shell arch),x86_64)
-CFLAGS += -fPIC
-endif
-LDFLAGS += -L$(top_srcdir)/lib/libalpm/.libs -lalpm
-LIBDIR += $(shell perl -V|grep site|sed 's/^ *//;s|/usr|$(prefix)|;q')
-
-all: Core.so
-
-Core.so: alpm_wrap.o
- $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)
-
-alpm_wrap.o: alpm_wrap.c
- $(CC) $(CFLAGS) -c -o $@ -include alpm.h $^
-
-alpm_wrap.c:
- cp $(top_srcdir)/lib/libalpm/alpm.h ./
- cp $(top_srcdir)/bindings/alpm.i ./
- swig -perl alpm.i
-
-install: install-so install-pm
-
-install-so: Core.so
- mkdir -p $(DESTDIR)$(LIBDIR)/auto/Alpm/Core
- install $^ $(DESTDIR)$(LIBDIR)/auto/Alpm/Core/
-
-install-pm: Core.pm
- mkdir -p $(DESTDIR)$(LIBDIR)/Alpm/
- install -m644 $^ $(DESTDIR)$(LIBDIR)/Alpm/
-
-clean:
- rm -f Core* alpm{.h,.i,_wrap*}
-
-distclean: clean
- rm -f Makefile
-
-check:
diff --git a/bindings/python/.cvsignore b/bindings/python/.cvsignore
deleted file mode 100644
index 88b6f17f..00000000
--- a/bindings/python/.cvsignore
+++ /dev/null
@@ -1,6 +0,0 @@
-Makefile
-_alpm*
-alpm.i
-alpm.h
-alpm.py*
-alpm_wrap*
diff --git a/bindings/python/Makefile.in b/bindings/python/Makefile.in
deleted file mode 100644
index 34a8d3a9..00000000
--- a/bindings/python/Makefile.in
+++ /dev/null
@@ -1,49 +0,0 @@
-top_srcdir = @top_srcdir@
-prefix = @prefix@
-
-CFLAGS = $(subst -Werror,,@CFLAGS@)
-CFLAGS += $(shell python -c 'from distutils import sysconfig; print "-I" + sysconfig.get_python_inc()')
-CFLAGS += -I$(top_srcdir)/lib/libalpm
-CFLAGS += -fno-strict-aliasing # see the swig docs
-ifeq ($(shell arch),x86_64)
-CFLAGS += -fPIC
-endif
-LDFLAGS += -L$(top_srcdir)/lib/libalpm/.libs -lalpm
-LIBDIR += $(shell python -c 'from distutils import sysconfig; print sysconfig.get_python_lib()'|sed 's|/usr|$(prefix)|')
-
-all: _alpm.so alpm.pyc
-
-_alpm.so: alpm_wrap.o
- $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)
-
-alpm_wrap.o: alpm_wrap.c
- $(CC) $(CFLAGS) -c -o $@ -include alpm.h $^
-
-alpm_wrap.c:
- cp $(top_srcdir)/lib/libalpm/alpm.h ./
- cp $(top_srcdir)/bindings/alpm.i ./
- swig -python alpm.i
- # strip the unnecessary prefixes
- sed -i 's/^alpm_//;s/^PM_//' alpm.py
-
-alpm.pyc: alpm.py
- python -c "import compileall; compileall.compile_dir('.',1,'.')"
-
-alpm.py: alpm_wrap.c
-
-install: install-so install-py
-
-install-so: _alpm.so
- mkdir -p $(DESTDIR)$(LIBDIR)
- install $^ $(DESTDIR)$(LIBDIR)
-
-install-py: alpm.py alpm.pyc
- install -m644 $^ $(DESTDIR)$(LIBDIR)
-
-clean:
- rm -f _alpm* alpm{.h,.i,.py*,_wrap*}
-
-distclean: clean
- rm -f Makefile
-
-check:
diff --git a/configure.ac b/configure.ac
index b5dcbac4..5fb37e86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -207,82 +207,6 @@ else
fi
AM_CONDITIONAL(HAS_DOXYGEN, test $DOXYGEN)
-dnl Check for swig binary
-AC_CHECK_PROGS([SWIG], [swig])
-
-dnl Check for python support
-AC_MSG_CHECKING(if Python bindings should be generated)
-if test x$wantpython = xyes ; then
- AM_CONDITIONAL(HAS_PYTHON, test $SWIG)
- if test $SWIG ; then
- AC_DEFINE([HAS_PYTHON], [TRUE], [Enabled Python Support])
- AC_MSG_RESULT(yes)
- PYTHONSTATUS="yes, path: `which $SWIG`"
- else
- AC_DEFINE([HAS_PYTHON], [FALSE], [Disabled Python support])
- AC_MSG_RESULT(no, swig missing)
- PYTHONSTATUS="swig binary not found"
- fi
-else
- AM_CONDITIONAL(HAS_PYTHON, test $PYTHON)
- AC_DEFINE([HAS_PYTHON], [FALSE], [Not specified at configure line])
- AC_MSG_RESULT(not requested by configure)
- PYTHONSTATUS="no, disabled by configure"
-fi
-
-dnl Check for perl support
-AC_MSG_CHECKING(if Perl bindings should be generated)
-if test x$wantperl = xyes ; then
- AM_CONDITIONAL(HAS_PERL, test $SWIG)
- if test $SWIG ; then
- AC_DEFINE([HAS_PERL], [TRUE], [Enabled Perl Support])
- AC_MSG_RESULT(yes)
- PERLSTATUS="yes, path: `which $SWIG`"
- else
- AC_DEFINE([HAS_PERL], [FALSE], [Disabled Perl support])
- AC_MSG_RESULT(no, swig missing)
- PERLSTATUS="swig binary not found"
- fi
-else
- AM_CONDITIONAL(HAS_PERL, test $PERL)
- AC_DEFINE([HAS_PERL], [FALSE], [Not specified at configure line])
- AC_MSG_RESULT(not requested by configure)
- PERLSTATUS="no, disabled by configure"
-fi
-
-dnl Check for java support
-AC_MSG_CHECKING(if Java bindings should be generated)
-if test x$wantjava = xyes ; then
- AC_CHECK_PROGS([JAVAC], [javac])
- AM_CONDITIONAL(HAS_JAVA, test "$JAVAC" -a "$SWIG")
- if test $JAVAC ; then
- if test $SWIG ; then
- AC_DEFINE([HAS_JAVA], [TRUE], [Enabled Java Support (javac=ok swig=ok)])
- AC_MSG_RESULT(yes)
- JAVASTATUS="yes, path: `which $JAVAC`"
- else
- AC_DEFINE([HAS_JAVA], [FALSE], [Java support disabled because swig not found (javac=ok swig=missing)])
- AC_MSG_RESULT(no, swig not found and that is need for java)
- JAVASTATUS="java compiler found, swig not found"
- fi
- else
- if test $SWIG ; then
- AC_DEFINE([HAS_JAVA], [FALSE], [Disabled Java support (javac=missing swig=ok])
- AC_MSG_RESULT(no, javac missing, swig ok)
- JAVASTATUS="java compiler not found, swig found"
- else
- AC_DEFINE([HAS_JAVA], [FALSE], [Disabled Java support (javac=missing swig=missing])
- AC_MSG_RESULT(no, javac missing, swig missing)
- JAVASTATUS="java compiler not found, swig not found"
- fi
- fi
-else
- AM_CONDITIONAL(HAS_JAVA, test $JAVAC -a $SWIG)
- AC_DEFINE([HAS_JAVA], [FALSE], [Not specified at configure line])
- AC_MSG_RESULT(not requested by configure)
- JAVASTATUS="no, disabled by configure"
-fi
-
dnl Check for math
AC_CHECK_LIB([m], [sqrt], [AC_CHECK_HEADER([math.h], [LIBM='-lm'])])
if test -z "$LIBM"; then
@@ -375,9 +299,6 @@ pacman-$VERSION:
Doxygen support : ${DOXYSTATUS}
Manpage localization : ${POSTATUS}
- Perl bindings : ${PERLSTATUS}
- Python bindings : ${PYTHONSTATUS}
- Java bindings : ${JAVASTATUS}
debug support : ${debug}
"