SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "python-sphinx"

# SliTaz package receipt.

PACKAGE="python-sphinx"
VERSION="1.8.6"
CATEGORY="utilities"
SHORT_DESC="Documentation Tool."
MAINTAINER="claudinei@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://pypi.org/project/Sphinx/"
REPOLOGY="python:sphinx"

SOURCE="Sphinx"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"

DEPENDS="python python-docutils python-jinja2 python-pygments"
BUILD_DEPENDS="python-dev python-setuptools"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/sphinx-doc/sphinx/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    python setup.py build &&
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr    $fs
}

# Remove old package.
post_install()
{
    [ ! -d "$1/var/lib/tazpkg/installed/sphinx" ] ||
    rm -rf "$1/var/lib/tazpkg/installed/sphinx"
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)