I really like the idea of WikipediaFS, but it's not in Portage so I decided I'd try to make an ebuild for it.
I've never made one before, and I should be very clear that as of writing the following DOES NOT WORK, but I figured you guys would want to get your hands on at least the beginning of it and maybe turn it into a working one.
I don't use any of the pretty scripts like "econf" or "einfo," and probably should.
This is my first ebuild, so please give me (nice) pointers!
Code: Select all
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="A program to mount WikipediaFS, a filesystem that allows to view and edit Wikipedia articles as if they were real files."
HOMEPAGE="http://wikipediafs.sourceforge.net/"
SRC_URI="http://umn.dl.sourceforge.net/sourceforge/wikipediafs/wikipediafs-0.3.tar.gz"
# I've seen something with "mirror://sourceforge/..." before. I assume I should be using something like that.
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="sys-fs/fuse"
RDEPEND="sys-fs/fuse-python"
src_unpack()
{
# This stuff was taken from http://gentoo-wiki.com/HOWTO_Write_Ebuilds
# Is it needed?
mkdir -p ${S}
cp ${FILESDIR}/wikipediafs-0.3.tar.gz ${S}
gzip -d ${S}/wikipediafs-0.3.tar.gz
}
src_compile()
{
# This is the command you use to install it outside of Portage.
# I'm not sure this goes here.
# Does Portage install this stuff into a separate dir and then the
# src_install function should move it over?
python ${S}/wikipediafs-0.3/setup.py install || die "Setup failed."
}
src_install()
{
# Does the above command go here?
dodoc README NEWS Changelog AUTHORS HACKING
}
