summaryrefslogtreecommitdiff
path: root/filesystems/fuse-wikipediafs
diff options
context:
space:
mode:
authoragc <agc>2007-08-09 21:42:52 +0000
committeragc <agc>2007-08-09 21:42:52 +0000
commit2ed6b210a11e83e62f41cc8bafc940524d4e37bd (patch)
tree6292a303b1d20ff2c67ed1b336f49b00539a6785 /filesystems/fuse-wikipediafs
parent6c1aa9201483d9751cf08de263de69565cc149a6 (diff)
downloadpkgsrc-2ed6b210a11e83e62f41cc8bafc940524d4e37bd.tar.gz
Initial import of wikipediafs-0.3 into the Packages Collection.
WikipediaFS is a mountable virtual file system that allows to read and edit articles from Wikipedia (or any Mediawiki-based site) as if they were real files. It is thus possible to view and edit articles using your favourite text-editor. Text-editors tend to be more convenient than a simple browser form when it comes to editing large texts and they generally include useful features such as Mediawiki syntax highlighting and spell checking. Advanced usage of WikipediaFS includes easy development of scripts and bots. Programs simply have to deal with normal files because this is WikipediaFS which takes care of the HTTP layer. For example, it would be possible to use WikipediaFS to perform a massive content migration from an existing site to a Mediawiki. Features * Reading and editing articles, including subpages. * User * configuration : add your own Mediawiki. * Editing with your login * HTTPS, HTTP authentication, proxy.
Diffstat (limited to 'filesystems/fuse-wikipediafs')
-rw-r--r--filesystems/fuse-wikipediafs/DESCR22
-rw-r--r--filesystems/fuse-wikipediafs/Makefile42
-rw-r--r--filesystems/fuse-wikipediafs/PLIST22
-rw-r--r--filesystems/fuse-wikipediafs/distinfo6
-rw-r--r--filesystems/fuse-wikipediafs/patches/patch-aa12
5 files changed, 104 insertions, 0 deletions
diff --git a/filesystems/fuse-wikipediafs/DESCR b/filesystems/fuse-wikipediafs/DESCR
new file mode 100644
index 00000000000..da1a59f902b
--- /dev/null
+++ b/filesystems/fuse-wikipediafs/DESCR
@@ -0,0 +1,22 @@
+WikipediaFS is a mountable virtual file system that allows to read and
+edit articles from Wikipedia (or any Mediawiki-based site) as if they
+were real files.
+
+It is thus possible to view and edit articles using your favourite
+text-editor. Text-editors tend to be more convenient than a simple
+browser form when it comes to editing large texts and they generally
+include useful features such as Mediawiki syntax highlighting and
+spell checking.
+
+Advanced usage of WikipediaFS includes easy development of scripts and
+bots. Programs simply have to deal with normal files because this is
+WikipediaFS which takes care of the HTTP layer. For example, it would
+be possible to use WikipediaFS to perform a massive content migration
+from an existing site to a Mediawiki.
+
+Features
+
+ * Reading and editing articles, including subpages.
+ * User * configuration : add your own Mediawiki.
+ * Editing with your login
+ * HTTPS, HTTP authentication, proxy.
diff --git a/filesystems/fuse-wikipediafs/Makefile b/filesystems/fuse-wikipediafs/Makefile
new file mode 100644
index 00000000000..2ac31953536
--- /dev/null
+++ b/filesystems/fuse-wikipediafs/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/08/09 21:42:52 agc Exp $
+#
+
+DISTNAME= wikipediafs-0.3
+PKGNAME= fuse-${DISTNAME}
+CATEGORIES= filesystems
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wikipediafs/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://wikipediafs.sourceforge.net/
+COMMENT= FUSE filesystem for acecssing the wikipedia
+
+NO_BUILD= yes
+PYTHON_VERSIONS_ACCEPTED= 24
+
+PLIST_SUBST+= PYSITELIB=${PYSITELIB:Q}
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= post-patch
+SUBST_FILES.config= setup.py
+SUBST_SED.config+= -e "s|@PREFIX@|${PREFIX}|g"
+SUBST_SED.config+= -e "s|@PKGMANDIR@|${PKGMANDIR}|g"
+SUBST_SED.config+= -e "s|@PYSITELIB@|${PREFIX}/${PYSITELIB}|g"
+SUBST_MESSAGE.config= Fixing paths.
+
+do-build:
+ cd ${WRKSRC} && ${PYTHONBIN} setup.py build
+
+do-install:
+ cd ${WRKSRC} && ${PYTHONBIN} setup.py install
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+PRIVILEGED_STAGES+= clean
+.endif
+
+.include "../../filesystems/py-fuse-bindings/buildlink3.mk"
+
+.include "../../lang/python/application.mk"
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/filesystems/fuse-wikipediafs/PLIST b/filesystems/fuse-wikipediafs/PLIST
new file mode 100644
index 00000000000..2a15bf4ecc0
--- /dev/null
+++ b/filesystems/fuse-wikipediafs/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/08/09 21:42:52 agc Exp $
+bin/mount.wikipediafs
+${PYSITELIB}/wikipediafs/__init__.py
+${PYSITELIB}/wikipediafs/__init__.pyc
+${PYSITELIB}/wikipediafs/article.py
+${PYSITELIB}/wikipediafs/article.pyc
+${PYSITELIB}/wikipediafs/config.py
+${PYSITELIB}/wikipediafs/config.pyc
+${PYSITELIB}/wikipediafs/fs.py
+${PYSITELIB}/wikipediafs/fs.pyc
+${PYSITELIB}/wikipediafs/http.py
+${PYSITELIB}/wikipediafs/http.pyc
+${PYSITELIB}/wikipediafs/logger.py
+${PYSITELIB}/wikipediafs/logger.pyc
+${PYSITELIB}/wikipediafs/metadir.py
+${PYSITELIB}/wikipediafs/metadir.pyc
+${PYSITELIB}/wikipediafs/user.py
+${PYSITELIB}/wikipediafs/user.pyc
+${PYSITELIB}/wikipediafs/version.py
+${PYSITELIB}/wikipediafs/version.pyc
+man/man1/mount.wikipediafs.1
+@dirrm ${PYSITELIB}/wikipediafs
diff --git a/filesystems/fuse-wikipediafs/distinfo b/filesystems/fuse-wikipediafs/distinfo
new file mode 100644
index 00000000000..a2d1885836f
--- /dev/null
+++ b/filesystems/fuse-wikipediafs/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/08/09 21:42:52 agc Exp $
+
+SHA1 (wikipediafs-0.3.tar.gz) = 8814afbb18f122492857a06a9f7a949b16e7b714
+RMD160 (wikipediafs-0.3.tar.gz) = 16377047749665082328421ffcb108f363db3dab
+Size (wikipediafs-0.3.tar.gz) = 25409 bytes
+SHA1 (patch-aa) = 35bb8db6d74022fef921ff60fe2f4afa6340eade
diff --git a/filesystems/fuse-wikipediafs/patches/patch-aa b/filesystems/fuse-wikipediafs/patches/patch-aa
new file mode 100644
index 00000000000..69eb294ef09
--- /dev/null
+++ b/filesystems/fuse-wikipediafs/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/08/09 21:42:52 agc Exp $
+
+--- setup.py 2007/08/09 20:52:33 1.1
++++ setup.py 2007/08/09 20:52:59
+@@ -12,5 +12,5 @@
+ packages = ['wikipediafs'],
+ package_dir = {'wikipediafs':'src/wikipediafs/'},
+ scripts = ['src/mount.wikipediafs'],
+- data_files = [('/usr/share/man/man1/', ['doc/mount.wikipediafs.1.gz'])],
++ data_files = [('@PKGMANDIR@/man1/', ['doc/mount.wikipediafs.1.gz'])],
+ )
+\ No newline at end of file