summaryrefslogtreecommitdiff
path: root/bindings
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 /bindings
parentcdaed9221d9614c4c43103d79f8b53b916d80d86 (diff)
* removal of swig generated bindings
Diffstat (limited to '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
7 files changed, 0 insertions, 178 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: