From 4c3aaf3ad0023204c8e09d02de150ca2a29e9e59 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 15:17:46 +0100 Subject: Revert "Do not dlopen libpython" This reverts commit d63756bd11b097f11f115d5477110893b7ee16a2. Causes problems like the following issue on github: https://github.com/mate-desktop/python-caja/issues/5 --- src/Makefile.am | 4 +++- src/caja-python.c | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index f03fe1a..7ccb7c5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,6 +6,8 @@ AM_CPPFLAGS = \ -I$(top_builddir) \ $(DISABLE_DEPRECATED_CFLAGS) \ $(CAJA_PYTHON_CFLAGS) \ + -DPYTHON_VERSION=\"$(PYTHON_VERSION)\" \ + -DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\"" \ $(PYTHON_INCLUDES) caja_extensiondir=$(CAJA_EXTENSION_DIR) @@ -18,5 +20,5 @@ libcaja_python_la_SOURCES = \ caja-python-object.c \ caja-python-object.h -libcaja_python_la_LDFLAGS = -module -avoid-version -no-undefined +libcaja_python_la_LDFLAGS = -module -avoid-version libcaja_python_la_LIBADD = $(CAJA_PYTHON_LIBS) $(PYTHON_LIBS) diff --git a/src/caja-python.c b/src/caja-python.c index 21e7f42..a6a7478 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -155,11 +155,17 @@ static gboolean caja_python_init_python (void) { PyObject *caja; + GModule *libpython; char *argv[] = { "caja", NULL }; if (Py_IsInitialized()) return TRUE; + debug("g_module_open " PY_LIB_LOC "/libpython" PYTHON_VERSION "." G_MODULE_SUFFIX ".1.0"); + libpython = g_module_open(PY_LIB_LOC "/libpython" PYTHON_VERSION "." G_MODULE_SUFFIX ".1.0", 0); + if (!libpython) + g_warning("g_module_open libpython failed: %s", g_module_error()); + debug("Py_Initialize"); Py_Initialize(); if (PyErr_Occurred()) -- cgit v1.2.1 From 2ff6fb9f311f46c757fdbff994b6c45673b1369d Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 16:53:23 +0100 Subject: Autofoo cleanups --- Makefile.am | 2 ++ configure.ac | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1ba7536..c9e0935 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,8 @@ if ENABLE_GTK_DOC SUBDIRS += docs endif +ACLOCAL_AMFLAGS = -I m4 -I . ${ACLOCAL_FLAGS} + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = caja-python.pc diff --git a/configure.ac b/configure.ac index 9c80db0..4c23b22 100644 --- a/configure.ac +++ b/configure.ac @@ -3,12 +3,10 @@ AC_INIT([caja-python], [1.6.0], [http://mate-desktop.org]) AC_SUBST(PACKAGE) AC_SUBST(VERSION) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE(1.10 dist-xz no-dist-gzip) AC_CONFIG_HEADERS(config.h) AC_CONFIG_MACRO_DIR([m4]) -AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I .") - CAJA_REQUIRED=1.6.0 AC_PROG_CC -- cgit v1.2.1 From 8cd560b2f3ba55a1ac45f4dcd859f8470897ffe4 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 17:18:07 +0100 Subject: Bring gtk-doc up to date. It should build again and be properly included with make dist. Based on nautilus-python changes, see below for the details. https://git.gnome.org/browse/nautilus-python/log/docs?h=nautilus-3.0 --- docs/Makefile.am | 38 ++++-- docs/xsl/common.xsl | 19 +++ docs/xsl/devhelp.xsl | 154 ++++++++++++++++++++++++ docs/xsl/fixxref.py | 67 +++++++++++ docs/xsl/html.xsl | 285 ++++++++++++++++++++++++++++++++++++++++++++ docs/xsl/pdf-style.xsl | 11 ++ docs/xsl/pdf.xsl | 259 ++++++++++++++++++++++++++++++++++++++++ docs/xsl/ref-html-style.xsl | 54 +++++++++ docs/xsl/style.css | 10 ++ 9 files changed, 886 insertions(+), 11 deletions(-) create mode 100644 docs/xsl/common.xsl create mode 100644 docs/xsl/devhelp.xsl create mode 100755 docs/xsl/fixxref.py create mode 100644 docs/xsl/html.xsl create mode 100644 docs/xsl/pdf-style.xsl create mode 100644 docs/xsl/pdf.xsl create mode 100644 docs/xsl/ref-html-style.xsl create mode 100644 docs/xsl/style.css diff --git a/docs/Makefile.am b/docs/Makefile.am index 6416f94..d406f66 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -3,10 +3,10 @@ BUILDDIR = $(top_builddir)/docs REF_VERSION = $(VERSION) FULL_VERSION = $(VERSION) -HTML_STYLE = $(PYGOBJECT_DATADIR)/pygobject/xsl/ref-html-style.xsl -PDF_STYLE = $(PYGOBJECT_DATADIR)/pygobject/xsl/pdf-style.xsl +FIXXREF = $(srcdir)/xsl/fixxref.py +HTML_STYLE = $(srcdir)/xsl/ref-html-style.xsl -XMLFILES = \ +XML_FILES = \ reference/caja-python-ref.xml \ reference/caja-python-overview.xml \ reference/caja-python-overview-example.xml \ @@ -27,7 +27,7 @@ XMLFILES = \ reference/caja-python-operation-result.xml HTMLdir = $(datadir)/gtk-doc/html/caja-python -HTMLFILES = \ +HTML_FILES = \ html/index.html \ html/index.sgml \ html/caja-python-overview.html \ @@ -48,39 +48,55 @@ HTMLFILES = \ html/caja-python-enum-reference.html \ html/enum-caja-python-operation-result.html \ html/caja-python.devhelp +HTML_DATA = $(HTML_FILES) -CSS_FILES = $(PYGOBJECT_PYGDOCS)/style.css +XSL_FILES = \ + xsl/common.xsl \ + xsl/devhelp.xsl \ + xsl/html.xsl \ + xsl/pdf-style.xsl \ + xsl/pdf.xsl \ + xsl/style.css +XSL_DATA = $(XSL_FILES) $(FIXXREF) +XSLdir = $(BUILDDIR)/xsl + +CSS_FILES = xsl/style.css CSSdir = $(HTMLdir) CSS_DATA = $(CSS_FILES) BUILT_SOURCES = \ reference/builddate.xml \ - $(HTMLFILES) + $(HTML_FILES) CLEANFILES = \ caja-python-ref.* \ reference/builddate.xml \ - $(HTMLFILES) + $(HTML_FILES) EXTRA_DIST = \ - $(XMLFILES) + $(XML_FILES) \ + $(XSL_FILES) \ + $(FIXXREF) \ + $(HTML_STYLE) REFERENCE_DEPS = \ reference \ - $(XMLFILES) + $(XML_FILES) \ + $(XSL_FILES) \ + $(FIXXREF) if ENABLE_GTK_DOC reference/builddate.xml: $(REFERENCE_DEPS) $(PYTHON) -c 'import datetime; print datetime.date.today()' > $@ -$(HTMLFILES): $(REFERENCE_DEPS) +$(HTML_FILES): $(REFERENCE_DEPS) xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \ --path $(BUILDDIR)/reference:$(srcdir)/reference \ --stringparam gtkdoc.bookname "caja-python" \ --stringparam gtkdoc.version ${REF_VERSION} \ $(HTML_STYLE) $(srcdir)/reference/caja-python-ref.xml - $(PYGOBJECT_FIXXREF) -i $(PYGOBJECT_PYGDOCS) $(BUILDDIR)/html + $(FIXXREF) -i xsl $(BUILDDIR)/html touch $@ endif diff --git a/docs/xsl/common.xsl b/docs/xsl/common.xsl new file mode 100644 index 0000000..606313f --- /dev/null +++ b/docs/xsl/common.xsl @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + diff --git a/docs/xsl/devhelp.xsl b/docs/xsl/devhelp.xsl new file mode 100644 index 0000000..ce27739 --- /dev/null +++ b/docs/xsl/devhelp.xsl @@ -0,0 +1,154 @@ + + + + + + + + + + + + book + + + .devhelp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + diff --git a/docs/xsl/fixxref.py b/docs/xsl/fixxref.py new file mode 100755 index 0000000..f3287b3 --- /dev/null +++ b/docs/xsl/fixxref.py @@ -0,0 +1,67 @@ +#!/usr/bin/env python +# -*- Mode: Python; py-indent-offset: 4 -*- + +import getopt +import os +import re +import sys + +anchors = {} +anchor_pat = re.compile(r'''^\s*''', + re.MULTILINE | re.VERBOSE) +link_pat = re.compile(r'''(.*?) + ''', re.DOTALL | re.VERBOSE) +def scan_index_dir(idir): + for root, dirs, files in os.walk(idir): + if 'index.sgml' in files: + scan_index_file(os.path.join(root, 'index.sgml')) + return + +def scan_index_file(ifile): + buf = open(ifile).read() + for id, href in anchor_pat.findall(buf): + anchors[id] = href + +def fix_xrefs(hdir): + for f in os.listdir(hdir): + if os.path.splitext(f)[1] == '.html': + fix_html_file(os.path.join(hdir, f)) + +def link_subst(m): + id, text = m.groups() + if anchors.has_key(id): + return '' + text + '' + return text + +def fix_html_file(hfile): + buf = open(hfile).read() + buf = link_pat.sub(link_subst, buf) + open(hfile, 'w').write(buf) + +def usage(e=None): + if e: + sys.stderr.write('fixxref.py: %s\n' % e) + sys.stderr.write('usage: fixxref.py [-i index-dir] html-dir\n') + sys.exit(1) + +if __name__ == '__main__': + try: + opts, args = getopt.getopt(sys.argv[1:], "i:h:", + ["index-dir=", "html-dir="]) + except getopt.error, e: + usage(e) + + index_dirs = [] + for opt, arg in opts: + if opt in ('-i', '--index-dir'): + index_dirs.append(arg) + + if len(args) != 1: + usage() + + for idir in index_dirs: + scan_index_dir(idir) + + html_dir = args[0] + fix_xrefs(html_dir) diff --git a/docs/xsl/html.xsl b/docs/xsl/html.xsl new file mode 100644 index 0000000..d8fea78 --- /dev/null +++ b/docs/xsl/html.xsl @@ -0,0 +1,285 @@ + + + +]> + + + +style.css + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
  + +  
+ -- + +  
+
+ + + + + +
+ +
+
+ +
+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+      class 
+      
+      
+        (
+                )
+      
+      :&RE;
+
+      
+    
+
+ + + + + + + + , + + + + + + + + + +   + + + + + + , + + + + + + + + + , + + + + + + + + + , + + + + + + + + +      + + + + + + + + +   + + + + + + +   + + + + + + = + + + + + + + void  + + + + + + + + + + + + , + + + + + + + + + + def + + ( + + ) + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
diff --git a/docs/xsl/pdf-style.xsl b/docs/xsl/pdf-style.xsl new file mode 100644 index 0000000..d4a8e02 --- /dev/null +++ b/docs/xsl/pdf-style.xsl @@ -0,0 +1,11 @@ + + + + + + + + + + diff --git a/docs/xsl/pdf.xsl b/docs/xsl/pdf.xsl new file mode 100644 index 0000000..375ba40 --- /dev/null +++ b/docs/xsl/pdf.xsl @@ -0,0 +1,259 @@ + + + +]> + + + +0.5in + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + class + + + ( + + ) + +  : + + + + + &RE; + + + + + + + + + , + + + + + + +   + + + + + , + + + + + + + , + + + + + + + , + + + + + + +      + + + + + + + +   + + + + +   + + + + = + + + + + void  + + + + + + + + + , + + + + + + + + def + + ( + + ) + + + + + + + + + ( + + ) + + + + + + + + + + + + + diff --git a/docs/xsl/ref-html-style.xsl b/docs/xsl/ref-html-style.xsl new file mode 100644 index 0000000..380e6a6 --- /dev/null +++ b/docs/xsl/ref-html-style.xsl @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + <ANCHOR id=" + + " href=" + + + / + + + "> + + + + + + + + + + + + + + + + + + + diff --git a/docs/xsl/style.css b/docs/xsl/style.css new file mode 100644 index 0000000..59abc74 --- /dev/null +++ b/docs/xsl/style.css @@ -0,0 +1,10 @@ +.programlisting { +font: monospace; +background-color: #E0E0E0; +padding: 5; +} + +pre.synopsis { +background-color: #E0E0E0; +padding: 5; +} -- cgit v1.2.1 From 067facfc97151ce24ccb6cf7ecda124ea0d6afbe Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 17:47:37 +0100 Subject: Cleanup AM_CPPFLAGS --- src/Makefile.am | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 7ccb7c5..e3d7c3f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,15 +1,3 @@ -AM_CPPFLAGS = \ - -DG_LOG_DOMAIN=\"Caja-Python\" \ - -DDATADIR=\"$(datadir)\" \ - -DLIBDIR=\"$(libdir)\" \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - $(DISABLE_DEPRECATED_CFLAGS) \ - $(CAJA_PYTHON_CFLAGS) \ - -DPYTHON_VERSION=\"$(PYTHON_VERSION)\" \ - -DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\"" \ - $(PYTHON_INCLUDES) - caja_extensiondir=$(CAJA_EXTENSION_DIR) caja_extension_LTLIBRARIES = libcaja-python.la @@ -20,5 +8,20 @@ libcaja_python_la_SOURCES = \ caja-python-object.c \ caja-python-object.h +libcaja_python_la_CPPFLAGS = \ + -I$(top_srcdir) \ + -I$(top_builddir) \ + -DG_LOG_DOMAIN=\"Caja-Python\" \ + -DDATADIR=\"$(datadir)\" \ + -DLIBDIR=\"$(libdir)\" \ + -DPYTHON_VERSION=\"$(PYTHON_VERSION)\" \ + -DPY_LIB_LOC="\"$(PYTHON_LIB_LOC)\"" \ + $(PYTHON_INCLUDES) \ + $(AM_CPPFLAGS) + +libcaja_python_la_CFLAGS = \ + $(CAJA_PYTHON_CFLAGS) \ + $(AM_CFLAGS) + libcaja_python_la_LDFLAGS = -module -avoid-version libcaja_python_la_LIBADD = $(CAJA_PYTHON_LIBS) $(PYTHON_LIBS) -- cgit v1.2.1 From 5561a9a9080d218c8b935d133f7f50d9efc41d77 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 17:48:38 +0100 Subject: Don't set AC_PREFIX_DEFAULT --- configure.ac | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4c23b22..1ca4590 100644 --- a/configure.ac +++ b/configure.ac @@ -25,8 +25,6 @@ if test "x$HAVE_PKGCONFIG" = "xno"; then AC_MSG_ERROR([you need to have pkgconfig installed !]) fi -AC_PREFIX_DEFAULT([$(pkg-config --variable=prefix libcaja-extension || echo /usr)]) - dnl ************************************************** dnl * Check for Python dnl ************************************************** -- cgit v1.2.1 From 6eeee715e1cf4734481c36e876696bf172d562cd Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 18:21:49 +0100 Subject: Fix distcheck so it works without root privilege --- Makefile.am | 2 +- configure.ac | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index c9e0935..01df24c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,4 +11,4 @@ pkgconfig_DATA = caja-python.pc EXTRA_DIST = caja-python.pc.in -DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc +DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --with-cajadir='$${libdir}/caja/extensions-2.0-distcheck' diff --git a/configure.ac b/configure.ac index 1ca4590..84b70c3 100644 --- a/configure.ac +++ b/configure.ac @@ -17,14 +17,14 @@ dnl Check for pkgconfig first AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) AC_PATH_PROG(PKG_CONFIG, pkg-config, no) -dnl Check for gtk-doc -GTK_DOC_CHECK(1.9) - -dnl Give error and exit if we dont have pkgconfig +dnl Give error and exit if we don't have pkgconfig if test "x$HAVE_PKGCONFIG" = "xno"; then AC_MSG_ERROR([you need to have pkgconfig installed !]) fi +dnl Check for gtk-doc +GTK_DOC_CHECK(1.9) + dnl ************************************************** dnl * Check for Python dnl ************************************************** @@ -67,9 +67,16 @@ AC_DEFINE_UNQUOTED(CAJA_LIBDIR, "$CAJA_LIBDIR", [Caja libdir]) dnl --------------------------------- dnl Get caja extensions directory dnl --------------------------------- -CAJA_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libcaja-extension` -AC_SUBST(CAJA_EXTENSION_DIR) -AC_DEFINE_UNQUOTED(CAJA_EXTENSION_DIR, "$CAJA_EXTENSION_DIR", [Caja extensions directory]) +AC_ARG_WITH(cajadir, + AS_HELP_STRING([--with-cajadir=DIR],[Installation path for Caja extension @<:@auto@:>@]), + [ac_with_cajadir=$withval], + [ac_with_cajadir=""]) +if test "${ac_with_cajadir}" = ""; then + ac_with_cajadir=`$PKG_CONFIG --variable=extensiondir libcaja-extension` +fi + +AC_MSG_NOTICE([installing caja plugin in ${ac_with_cajadir}]) +AC_SUBST([CAJA_EXTENSION_DIR], [${ac_with_cajadir}]) dnl --------------------------------- dnl Check for gtk-doc dependencies -- cgit v1.2.1 From 2455345e11a5e1f117f41cb076223b485c99533c Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 8 Jan 2014 19:56:42 +0100 Subject: Cleanup AC_INIT --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 84b70c3..0f1d737 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,6 @@ -AC_INIT([caja-python], [1.6.0], [http://mate-desktop.org]) +AC_INIT([python-caja], [1.6.0], + [https://github.com/mate-desktop/python-caja/issues], + [python-caja], [http://mate-desktop.org]) AC_SUBST(PACKAGE) AC_SUBST(VERSION) -- cgit v1.2.1 From dc301b291bfee6e85c0b1c9453d0c90c8f908266 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 9 Jan 2014 11:42:29 +0100 Subject: Add ChangeLog dist-hook for generation from git --- Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index 01df24c..0f38bf8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,3 +12,17 @@ pkgconfig_DATA = caja-python.pc EXTRA_DIST = caja-python.pc.in DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --with-cajadir='$${libdir}/caja/extensions-2.0-distcheck' + +dist-hook: + @if test -d "$(srcdir)/.git"; \ + then \ + echo Creating ChangeLog && \ + ( cd "$(top_srcdir)" && \ + echo '# Generated by Makefile. Do not edit.'; echo; \ + $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \ + && mv -f ChangeLog.tmp $(distdir)/ChangeLog \ + || ( rm -f ChangeLog.tmp ; \ + echo Failed to generate ChangeLog >&2 ); \ + else \ + echo A git clone is required to generate a ChangeLog >&2; \ + fi -- cgit v1.2.1 From 19de5e2697e251e3653e5ee2b795742a6d977c3c Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 9 Jan 2014 12:14:26 +0100 Subject: Revert "Fix pkgconfig wraning about datadir" This reverts commit b0dcf318701e517340aa7a491af8a8384df474a4. --- caja-python.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caja-python.pc.in b/caja-python.pc.in index 280e1dc..574674c 100644 --- a/caja-python.pc.in +++ b/caja-python.pc.in @@ -4,4 +4,4 @@ Version: @VERSION@ prefix=@prefix@ libdir=${prefix}/lib -pythondir=${datadir}/caja-python/extensions +pythondir=@datadir@/caja-python/extensions -- cgit v1.2.1 From a0e9a8500ff07e1a4bf7cffb4e4838b8ec0700ac Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 9 Jan 2014 12:22:52 +0100 Subject: Properly fix dataroot warning for pkg-config file. All we needed to do was add @dataroot@ to caja-python.pc.in. config.status: WARNING: 'caja-python.pc.in' seems to ignore the --datarootdir setting --- caja-python.pc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/caja-python.pc.in b/caja-python.pc.in index 574674c..0e72f15 100644 --- a/caja-python.pc.in +++ b/caja-python.pc.in @@ -3,5 +3,6 @@ Description: Caja-Python Components Version: @VERSION@ prefix=@prefix@ +datarootdir = @datarootdir@ libdir=${prefix}/lib pythondir=@datadir@/caja-python/extensions -- cgit v1.2.1 From 0ce31a551ded5d0e03a7309a0cfcb38add3d203a Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 10 Jan 2014 11:13:08 +0100 Subject: Remove distro directory --- distro/archlinux/PKGBUILD | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 distro/archlinux/PKGBUILD diff --git a/distro/archlinux/PKGBUILD b/distro/archlinux/PKGBUILD deleted file mode 100644 index 9613edf..0000000 --- a/distro/archlinux/PKGBUILD +++ /dev/null @@ -1,28 +0,0 @@ -pkgname=python-caja -pkgver=2011.12.01 -pkgrel=1 -pkgdesc="Python binding for Caja components" -arch=('i686' 'x86_64') -url="http://matsusoft.com.ar/projects/" -license="GPL" -groups=('mate-extras') -makedepends=('pkgconfig' 'python-mate' ) -depends=('mate-file-manager' 'pygtk') -options=('!libtool' '!emptydirs') -source=(http://sourceforge.net/projects/matede/files/${pkgver}/${pkgname}.tar.gz/download) -sha256sums=('4c698543bebf1efd8ab097e47dd4f9ec72e492d3f482748086b271bfc1e36676') - -build() { - export PYTHON=python2 - cd "${srcdir}/${pkgname}" - - ./configure --prefix=/usr --sysconfdir=/etc \ - --localstatedir=/var --disable-static || return 1 - make || return 1 -} - -package() { - cd "${srcdir}/${pkgname}" - - make DESTDIR="$pkgdir" install || return 1 -} -- cgit v1.2.1