From aa97fce2be83fc0707664b461cd12df8801393ad Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sat, 22 Jan 2022 19:03:07 +0100 Subject: [PATCH] officialize some python packages, remove obsolete python scripts Signed-off-by: Gwenhael Le Moine --- ap/httpie/git.SlackBuild | 70 ----------------------------------- l/cffi/git.SlackBuild | 76 -------------------------------------- l/pycparser/SlackBuild | 1 + l/pywlroots/git.SlackBuild | 69 ---------------------------------- l/smartypants/SlackBuild | 1 + l/typogrify/SlackBuild | 1 + l/wheel/SlackBuild | 1 + l/xkbcommon/git.SlackBuild | 70 ----------------------------------- 8 files changed, 4 insertions(+), 285 deletions(-) delete mode 100755 ap/httpie/git.SlackBuild delete mode 100755 l/cffi/git.SlackBuild create mode 120000 l/pycparser/SlackBuild delete mode 100755 l/pywlroots/git.SlackBuild create mode 120000 l/smartypants/SlackBuild create mode 120000 l/typogrify/SlackBuild create mode 120000 l/wheel/SlackBuild delete mode 100755 l/xkbcommon/git.SlackBuild diff --git a/ap/httpie/git.SlackBuild b/ap/httpie/git.SlackBuild deleted file mode 100755 index 547e50be..00000000 --- a/ap/httpie/git.SlackBuild +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -# variables -TAG=gwh -TMP=/tmp/$TAG -CWD=$(pwd) -OUTPUT=/tmp - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM - -VERSION=${VERSION:-latest} - -DOCS="LICENSE README.rst AUTHORS.rst" - -ARCH=$(uname -m) -BUILD=1 - -PREFIX=/usr - -SLCKFLAGS="-fPIC -O2" - -REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -# nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM - -mkdir -p $PKG - -# mise en place -GIT_URL="https://github.com/jkbr/httpie.git" -[ ! -e $REPOSITORY ] && git clone "$GIT_URL" $REPOSITORY -cd $REPOSITORY -git pull --all - -cp -R $REPOSITORY $TMP/$PRGNAM -cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) -[ "x$VERSION" == "x" ] && VERSION=trunk -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION - -# installation -python3 ./setup.py install --root=$PKG - -mkdir -p $PKG/usr/doc/$PRGNAM -cp -R $DOCS $PKG/usr/doc/$PRGNAM - -# correction -cd $PKG -chown -R root:root * - -# embaumement -mkdir -p $PKG/install -cat < $PKG/install/slack-desc -$PRGNAM: $PRGNAM (a CLI, cURL-like tool for humans.) -$PRGNAM: -$PRGNAM: HTTPie is a command line HTTP client. Its goal is to make CLI interaction -$PRGNAM: with web services as human-friendly as possible. It provides a simple http -$PRGNAM: command that allows for sending arbitrary HTTP requests using a simple and -$PRGNAM: natural syntax, and displays colorized responses. HTTPie can be used for -$PRGNAM: testing, debugging, and generally interacting with HTTP servers. -$PRGNAM: -$PRGNAM: -$PRGNAM: http://httpie.org/ -$PRGNAM: -EOF - -# empaquetage -cd $PKG -rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz diff --git a/l/cffi/git.SlackBuild b/l/cffi/git.SlackBuild deleted file mode 100755 index 6d8724d0..00000000 --- a/l/cffi/git.SlackBuild +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash - -# variables -VERSION=${VERSION:-"trunk"} -BUILD=1 - -TAG=gwh -OUTPUT=/tmp -TMP=/tmp/$TAG -CWD=$(pwd) - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM - -ARCH=$(uname -m) - -REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -PREFIX=/usr - -DOCS="LICENSE AUTHORS *.md" - -# nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM - -mkdir -p $PKG - -# mise en place -[ ! -e $REPOSITORY ] && hg clone https://foss.heptapod.net/pypy/cffi $REPOSITORY -cd $REPOSITORY -hg pull - -cp -R $REPOSITORY $TMP/ -cd $TMP/$PRGNAM/ - -# [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION -[ "x$VERSION" == "xtrunk" ] && VERSION="hg_$(date +%F)" - -# installation -python3 ./setup.py install --root=$PKG - -mkdir -p $PKG/usr/doc/$PRGNAM -cp -R $DOCS $PKG/usr/doc/$PRGNAM - -# correction -cd $PKG -chown -R root:root * -find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \; - -# embaumement -mkdir -p $PKG/install - -cat < $PKG/install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -$PRGNAM: $PRGNAM (A Foreign Function Interface for Python.) -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: http://cffi.readthedocs.org/ -EOF - -# empaquetage -rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/l/pycparser/SlackBuild b/l/pycparser/SlackBuild new file mode 120000 index 00000000..ae97225f --- /dev/null +++ b/l/pycparser/SlackBuild @@ -0,0 +1 @@ +../../generic-python.SlackBuild \ No newline at end of file diff --git a/l/pywlroots/git.SlackBuild b/l/pywlroots/git.SlackBuild deleted file mode 100755 index ebf04ec0..00000000 --- a/l/pywlroots/git.SlackBuild +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# variables -TAG=gwh -TMP=/tmp/$TAG -CWD=$(pwd) -OUTPUT=/tmp - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM - -VERSION=${VERSION:-latest} - -DOCS="LICENSE *.rst" - -ARCH=$(uname -m) -BUILD=1 - -PREFIX=/usr - -SLCKFLAGS="-fPIC -O2" - -REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -# nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM - -mkdir -p $PKG - -# mise en place -[ ! -e $REPOSITORY ] && git clone https://github.com/flacjacket/pywlroots.git $REPOSITORY -cd $REPOSITORY -git pull --all - -cp -R $REPOSITORY $TMP/$PRGNAM -cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) -[ "x$VERSION" == "x" ] && VERSION=trunk -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION - -# installation -python3 ./setup.py install --root=$PKG - -mkdir -p $PKG/usr/doc/$PRGNAM -cp -R $DOCS $PKG/usr/doc/$PRGNAM - -# correction -cd $PKG -chown -R root:root * - -# embaumement -mkdir -p $PKG/install -cat < $PKG/install/slack-desc -$PRGNAM: $PRGNAM (Python binding to the wlroots library using cffi) -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: https://github.com/flacjacket/pywlroots -$PRGNAM: -EOF - -# empaquetage -cd $PKG -rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz diff --git a/l/smartypants/SlackBuild b/l/smartypants/SlackBuild new file mode 120000 index 00000000..ae97225f --- /dev/null +++ b/l/smartypants/SlackBuild @@ -0,0 +1 @@ +../../generic-python.SlackBuild \ No newline at end of file diff --git a/l/typogrify/SlackBuild b/l/typogrify/SlackBuild new file mode 120000 index 00000000..ae97225f --- /dev/null +++ b/l/typogrify/SlackBuild @@ -0,0 +1 @@ +../../generic-python.SlackBuild \ No newline at end of file diff --git a/l/wheel/SlackBuild b/l/wheel/SlackBuild new file mode 120000 index 00000000..ae97225f --- /dev/null +++ b/l/wheel/SlackBuild @@ -0,0 +1 @@ +../../generic-python.SlackBuild \ No newline at end of file diff --git a/l/xkbcommon/git.SlackBuild b/l/xkbcommon/git.SlackBuild deleted file mode 100755 index 52927b9e..00000000 --- a/l/xkbcommon/git.SlackBuild +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -# variables -TAG=gwh -TMP=/tmp/$TAG -CWD=$(pwd) -OUTPUT=/tmp - -PRGNAM=$(basename $CWD) -PKG=$TMP/pkg-$PRGNAM - -VERSION=${VERSION:-latest} - -DOCS="LICENSE README.rst" - -ARCH=$(uname -m) -BUILD=1 - -PREFIX=/usr - -SLCKFLAGS="-fPIC -O2" - -REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM -# nettoyage préalable -rm -fr $PKG $TMP/$PRGNAM - -mkdir -p $PKG - -# mise en place -GIT_URL="https://github.com/sde1000/python-xkbcommon.git" -[ ! -e $REPOSITORY ] && git clone "$GIT_URL" $REPOSITORY -cd $REPOSITORY -git pull --all - -cp -R $REPOSITORY $TMP/$PRGNAM -cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) -[ "x$VERSION" == "x" ] && VERSION=trunk -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION - -# installation -python3 ./setup.py install --root=$PKG - -mkdir -p $PKG/usr/doc/$PRGNAM -cp -R $DOCS $PKG/usr/doc/$PRGNAM - -# correction -cd $PKG -chown -R root:root * - -# embaumement -mkdir -p $PKG/install -cat < $PKG/install/slack-desc -$PRGNAM: $PRGNAM (Python bindings for libxkbcommon using cffi) -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: https://github.com/sde1000/python-xkbcommon -$PRGNAM: -EOF - -# empaquetage -cd $PKG -rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz