diff --git a/Python3-3.3.0-0.bee b/Python3-3.3.0-0.bee deleted file mode 100755 index b9acd7ee4..000000000 --- a/Python3-3.3.0-0.bee +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env beesh - -## this file was created by bee init and should be executed to build a -## bee-package. (Additional hints are located at the end of this file.) - -############################################################################### -## The source URL(s) define the location of the sources that will be -## downloaded. Version variables may be used to simplify reuse of this bee-file. - -SRCURL[0]="http://www.python.org/ftp/python/${PKGVERSION}/Python-${PKGVERSION}.tar.xz" - -############################################################################### -## Add URLs/pathes to patch files to the PATCHURL array. -## The sources will be patched in the order of the array. - -# PATCHURL+=() - -############################################################################### -## Add filename patterns to the EXCLUDE array of files that should not -## be added to you package but may be present in the image directory. - -# EXCLUDE+=() - -############################################################################### -## Uncomment the next statement, if the software may not be able to be build -## outside the source directory and need to be build inside the source -## directory. - -# build_in_sourcedir - -############################################################################### -## Change the default (auto-detected) steps to -## extract, patch, configure/setup, build and install the software. -## Make sure the mee_install function does install everything to the -## image directory "${D}" - -#mee_extract() { -# bee_extract "${@}" -#} - -#mee_patch() { -# bee_patch "${@}" -#} - -#mee_configure() { -# bee_configure -#} - -#mee_build() { -# bee_build -#} - -#mee_install() { -# bee_install -#} -## by default this may be 'make install DESTDIR="${D}"' - -############################################################################### -## -## Additional hints: -## -## The name of this bee-file should follow the following naming convention: -## pkgname-pkgversion-pkgrevision.bee -## -## You may remove all comments as long as SRCURL[0]="" is set. -## -## Everything in this file will be executed in a bash environment. -## -## Build the package by executing -## './pkg-version-N.bee' or -## 'beesh ./pkg-version-N.bee' -## -## see http://beezinga.org/ -## diff --git a/matplotlib_python3.3-1.2.0-0.bee b/matplotlib_python3.3-1.2.0-0.bee deleted file mode 100755 index ceb13c2f1..000000000 --- a/matplotlib_python3.3-1.2.0-0.bee +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env beesh - -## this file was created by bee init and should be executed to build a -## bee-package. (Additional hints are located at the end of this file.) - -############################################################################### -## The source URL(s) define the location of the sources that will be -## downloaded. Version variables may be used to simplify reuse of this bee-file. - -SRCURL[0]="https://github.com/downloads/matplotlib/matplotlib/matplotlib-${PKGVERSION}.tar.gz" - -############################################################################### -## Add URLs/pathes to patch files to the PATCHURL array. -## The sources will be patched in the order of the array. - -# PATCHURL+=() - -############################################################################### -## Add filename patterns to the EXCLUDE array of files that should not -## be added to you package but may be present in the image directory. - -# EXCLUDE+=() - -############################################################################### -## Uncomment the next statement, if the software may not be able to be build -## outside the source directory and need to be build inside the source -## directory. - -# build_in_sourcedir - -export PYTHON=${PKGEXTRANAME} - -############################################################################### -## Change the default (auto-detected) steps to -## extract, patch, configure/setup, build and install the software. -## Make sure the mee_install function does install everything to the -## image directory "${D}" - -#mee_extract() { -# bee_extract "${@}" -#} - -#mee_patch() { -# bee_patch "${@}" -#} - -#mee_configure() { -# bee_configure -#} - -#mee_build() { -# bee_build -#} - -#mee_install() { -# bee_install -#} -## by default this may be 'make install DESTDIR="${D}"' - -############################################################################### -## -## Additional hints: -## -## The name of this bee-file should follow the following naming convention: -## pkgname-pkgversion-pkgrevision.bee -## -## You may remove all comments as long as SRCURL[0]="" is set. -## -## Everything in this file will be executed in a bash environment. -## -## Build the package by executing -## './pkg-version-N.bee' or -## 'beesh ./pkg-version-N.bee' -## -## see http://beezinga.org/ -## diff --git a/numpy_python3.3-1.7.0b2-0.bee b/python3-wrapper.be0 similarity index 61% rename from numpy_python3.3-1.7.0b2-0.bee rename to python3-wrapper.be0 index c9faf6a5b..105ceaa86 100755 --- a/numpy_python3.3-1.7.0b2-0.bee +++ b/python3-wrapper.be0 @@ -1,5 +1,7 @@ #!/usr/bin/env beesh +# BEE_VERSION python3-wrapper-1.0-0 + ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -7,7 +9,7 @@ ## The source URL(s) define the location of the sources that will be ## downloaded. Version variables may be used to simplify reuse of this bee-file. -SRCURL[0]="http://downloads.sourceforge.net/project/numpy/NumPy/${PKGVERSION}/numpy-${PKGVERSION}.tar.gz" +SRCURL[0]="" ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array. @@ -22,14 +24,20 @@ SRCURL[0]="http://downloads.sourceforge.net/project/numpy/NumPy/${PKGVERSION}/nu # EXCLUDE+=() ############################################################################### -## Uncomment the next statement, if the software may not be able to be build -## outside the source directory and need to be build inside the source +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source ## directory. # build_in_sourcedir -# which python to use to build this module is encoded in PKGEXTRANAME -export PYTHON=${PKGEXTRANAME} +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + ############################################################################### ## Change the default (auto-detected) steps to @@ -46,16 +54,37 @@ export PYTHON=${PKGEXTRANAME} #} #mee_configure() { -# bee_configure +# bee_configure #} mee_build() { - bee_build --fcompiler=gnu95 + echo -e '#! /bin/bash\nprun python3 "$(basename "$0")" "$@"' >wrapper + chmod +x wrapper } -#mee_install() { -# bee_install -#} +create_bin_wrapper() { + cmd="$1" + target="$2" + if [ -z "$target" ]; then + ln "$B/wrapper" "$D$BINDIR/$cmd" + else + echo -e '#! /bin/bash\nprun python3 "$target" "$@"' > "$D$BINDIR/$cmd" + chmod +x "$D$BINDIR/$cmd" + fi +} + +mee_install() { + mkdir -p "$D$BINDIR" + create_bin_wrapper 2to3 + create_bin_wrapper idle3 + create_bin_wrapper pydoc3 + create_bin_wrapper python3-config + create_bin_wrapper python3 + create_bin_wrapper pyenv3 pyenv-3.3 + + create_bin_wrapper ipython3 + create_bin_wrapper meson +} ## by default this may be 'make install DESTDIR="${D}"' ############################################################################### @@ -65,7 +94,7 @@ mee_build() { ## The name of this bee-file should follow the following naming convention: ## pkgname-pkgversion-pkgrevision.bee ## -## You may remove all comments as long as SRCURL[0]="" is set. +## You may remove all comments as long as SRCURL[0] is set. ## ## Everything in this file will be executed in a bash environment. ##