[csw-devel] SF.net SVN: gar:[9797] csw/mgar/pkg/file/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Fri Apr 30 21:14:55 CEST 2010


Revision: 9797
          http://gar.svn.sourceforge.net/gar/?rev=9797&view=rev
Author:   wahwah
Date:     2010-04-30 19:14:55 +0000 (Fri, 30 Apr 2010)

Log Message:
-----------
file: Trying to build Python bindings, it doesn't work.

Modified Paths:
--------------
    csw/mgar/pkg/file/trunk/Makefile
    csw/mgar/pkg/file/trunk/checksums

Modified: csw/mgar/pkg/file/trunk/Makefile
===================================================================
--- csw/mgar/pkg/file/trunk/Makefile	2010-04-30 15:17:39 UTC (rev 9796)
+++ csw/mgar/pkg/file/trunk/Makefile	2010-04-30 19:14:55 UTC (rev 9797)
@@ -1,8 +1,7 @@
 GARNAME = file
-GARVERSION = 5.03
+GARVERSION = 5.04
 CATEGORIES = utils
 
-DESCRIPTION = A file type guesser
 define BLURB
   The file command is "a file type guesser", that is, a command-line tool that
   tells you in words what kind of data a file contains. Unlike most GUI systems,
@@ -13,20 +12,23 @@
 
 MASTER_SITES = ftp://ftp.astron.com/pub/file/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
-
-# We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
-
 SPKG_SOURCEURL = http://www.darwinsys.com/file/
-
-RUNTIME_DEP_PKGS = CSWzlib
-
 CONFIGURE_ARGS = $(DIRPATHS)
-
 # These flags are not understood by Sun Studio
 CONFIGURE_ARGS += --disable-warnings
-
 TEST_TARGET = check
+PACKAGES = CSWfile CSWlibmagic CSWpy-magic
+PKGFILES_CSWlibmagic = $(PKGFILES_RT)
+PKGFILES_CSWpy-magic = later
+SPKG_DESC_CSWfile = A file type guesser
+SPKG_DESC_CSWlibmagic = The library behind file(1)
+SPKG_DESC_CSWpy-magic = Python wrapper for libmagic
+CATALOGNAME_CSWpy-magic = py_magic
+RUNTIME_DEP_PKGS_CSWfile += CSWlibmagic
+ARCHALL_CSWpy-magic = 1
+RUNTIME_DEP_PKGS_CSWfile += CSWzlib
+RUNTIME_DEP_PKGS_CSWlibmagic += CSWzlib
 
 # The "file" util is used during stripbin. As the newly build binary
 # requires libmagic which is not installed yet we must not use the
@@ -34,3 +36,13 @@
 IGNORE_DESTDIR = 1
 
 include gar/category.mk
+
+post-build-modulated-disabled:
+	# This fails for a mysterious reason.  Can't find libmagic (-lmagic).
+	(cd $(WORKSRC)/python && python setup.py build)
+	@$(MAKECOOKIE)
+
+post-install-modulated:
+	(cd $(WORKSRC)/python && \
+		python setup.py install)
+	@$(MAKECOOKIE)

Modified: csw/mgar/pkg/file/trunk/checksums
===================================================================
--- csw/mgar/pkg/file/trunk/checksums	2010-04-30 15:17:39 UTC (rev 9796)
+++ csw/mgar/pkg/file/trunk/checksums	2010-04-30 19:14:55 UTC (rev 9797)
@@ -1 +1 @@
-d05f08a53e5c2f51f8ee6a4758c0cc53  file-5.03.tar.gz
+accade81ff1cc774904b47c72c8aeea0  file-5.04.tar.gz


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list