[csw-devel] SF.net SVN: gar:[4068] csw/mgar/pkg
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Mar 30 01:28:00 CEST 2009
Revision: 4068
http://gar.svn.sourceforge.net/gar/?rev=4068&view=rev
Author: wahwah
Date: 2009-03-29 23:28:00 +0000 (Sun, 29 Mar 2009)
Log Message:
-----------
Adding build for BeautifulSoup, a Python HTML parser.
Modified Paths:
--------------
csw/mgar/pkg/beautifulsoup/trunk/Makefile
csw/mgar/pkg/beautifulsoup/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/beautifulsoup/
Modified: csw/mgar/pkg/beautifulsoup/trunk/Makefile
===================================================================
--- csw/mgar/pkg/template/trunk/Makefile 2009-03-25 20:16:24 UTC (rev 3958)
+++ csw/mgar/pkg/beautifulsoup/trunk/Makefile 2009-03-29 23:28:00 UTC (rev 4068)
@@ -1,24 +1,44 @@
-GARNAME = mypkg
-GARVERSION = 1.0
+GARNAME = beautifulsoup
+GARVERSION = 3.1.0.1
CATEGORIES = lib
-DESCRIPTION = This is a useful library
+EXT_NAME = BeautifulSoup
+
+DESCRIPTION = A Python HTML/XML parser
define BLURB
- It does stuff with things
+ Beautiful Soup is a Python HTML/XML parser designed for quick turnaround
+ projects like screen-scraping. Three features make it powerful:
+
+ 1. Beautiful Soup won't choke if you give it bad markup. It yields a parse
+ tree that makes approximately as much sense as your original document. This
+ is usually good enough to collect the data you need and run away.
+ 2. Beautiful Soup provides a few simple methods and Pythonic idioms for
+ navigating, searching, and modifying a parse tree: a toolkit for dissecting a
+ document and extracting what you need. You don't have to create a custom
+ parser for each application.
+ 3. Beautiful Soup automatically converts incoming documents to Unicode and
+ outgoing documents to UTF-8. You don't have to think about encodings, unless
+ the document doesn't specify an encoding and Beautiful Soup can't autodetect
+ one. Then you just have to specify the original encoding.
endef
-MASTER_SITES =
-DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+MASTER_SITES = http://www.crummy.com/software/$(EXT_NAME)/download/
+DISTFILES = $(EXT_NAME).tar.gz
+WORKSRC = $(WORKDIR)/$(EXT_NAME)-$(GARVERSION)
-# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+ARCHALL = 1
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = beautifulsoup
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = beautifulsoup
-CONFIGURE_ARGS = $(DIRPATHS)
+PACKAGES = CSWbeautifulsoup
+REQUIRED_PKGS = CSWpython
-# Remove the following rules and uncomment the
-# include before building.
-all: .DEFAULT
-.DEFAULT:
- @true
+build-beautifulsoup:
+ (cd $(WORKSRC); python setup.py build)
-#include gar/category.mk
+install-beautifulsoup:
+ (cd $(WORKSRC); python setup.py install --root=$(DESTDIR))
+
+include gar/category.mk
Modified: csw/mgar/pkg/beautifulsoup/trunk/checksums
===================================================================
--- csw/mgar/pkg/template/trunk/checksums 2009-03-25 20:16:24 UTC (rev 3958)
+++ csw/mgar/pkg/beautifulsoup/trunk/checksums 2009-03-29 23:28:00 UTC (rev 4068)
@@ -0,0 +1 @@
+bcffef3eda6e06e6d1e18c06a9db8a24 download/BeautifulSoup.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