From f5b439c94302f7e5dc181ba7e1c49d04ec1e1af3 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Tue, 18 Feb 2020 12:51:58 +0100 Subject: [PATCH] lpsolve: update to 5.5.2.5 - be0ify - fixed SRCURL - fixed PATCHURL --- lpsolve-5.5.2.0-0.bee | 97 ------------------------------------------- lpsolve.be0 | 54 ++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 97 deletions(-) delete mode 100755 lpsolve-5.5.2.0-0.bee create mode 100755 lpsolve.be0 diff --git a/lpsolve-5.5.2.0-0.bee b/lpsolve-5.5.2.0-0.bee deleted file mode 100755 index 93eaa8d80..000000000 --- a/lpsolve-5.5.2.0-0.bee +++ /dev/null @@ -1,97 +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://downloads.sourceforge.net/project/lpsolve/lpsolve/${PKGVERSION}/lp_solve_${PKGVERSION}_source.tar.gz" - -############################################################################### -## Add URLs/pathes to patch files to the PATCHURL array. -## The sources will be patched in the order of the array. - -PATCHURL+=( - http://pkgs.fedoraproject.org/cgit/lpsolve.git/plain/lpsolve-5.5.0.11.cflags.patch -) - -############################################################################### -## 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 - -############################################################################### -## 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 -## 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() { - start_cmd cd lpsolve55 - start_cmd sh -x ccc - start_cmd rm bin/ux*/liblpsolve55.a - start_cmd cd - - start_cmd cd lp_solve - start_cmd sh -x ccc - start_cmd cd - -} - -mee_install() { - mkdir -p ${D}${BINDIR} - mkdir -p ${D}${LIBDIR} - mkdir -p ${D}${INCLUDEDIR}/lpsolve - - install -p -m 755 lp_solve/bin/ux*/lp_solve ${D}${BINDIR} - install -p -m 755 lpsolve55/bin/ux*/liblpsolve55.so ${D}${LIBDIR} - install -p -m 644 lp*.h ${D}${INCLUDEDIR}/lpsolve -} -## 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/lpsolve.be0 b/lpsolve.be0 new file mode 100755 index 000000000..a2e789b21 --- /dev/null +++ b/lpsolve.be0 @@ -0,0 +1,54 @@ +#!/usr/bin/env beesh + +# BEE_VERSION lpsolve-5.5.2.5-0 + +# more info: https://foo.bar.com + +# SRCURL[0]="https://downloads.sourceforge.net/project/lpsolve/lpsolve/${PKGVERSION}/lp_solve_${PKGVERSION}_source.tar.gz" +SRCURL[0]="https://beehive.molgen.mpg.de/3be57261fc41dd8e210f54017220d5f7/lp_solve_5.5.2.5_source.tar.gz" + +# PATCHURL+=("https://git.archlinux.org/svntogit/packages.git/plain/trunk/cflags.patch?h=packages/lpsolve cflags.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/7403f745d06619f59f52800b655d8751/cflags.patch") + +# PATCHURL+=("https://git.archlinux.org/svntogit/packages.git/plain/trunk/lpsolve-5.5.2.0.defines.patch?h=packages/lpsolve lpsolve-5.5.2.0.defines.patch") +PATCHURL+=("https://beehive.molgen.mpg.de/cb138e768ad1f8fce75c9989669dc402/lpsolve-5.5.2.0.defines.patch") + +build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +mee_build() { + cd lpsolve55 + sh -x ccc + rm -v bin/ux*/liblpsolve55.a + cd - + cd lp_solve + sh -x ccc + cd - +} + +mee_install() { + mkdir -vp ${D}${BINDIR} + mkdir -vp ${D}${LIBDIR} + mkdir -vp ${D}${INCLUDEDIR}/lpsolve + + install -vp -m 755 lp_solve/bin/ux*/lp_solve ${D}${BINDIR} + install -vp -m 755 lpsolve55/bin/ux*/liblpsolve55.so ${D}${LIBDIR} + install -vp -m 644 lp*.h ${D}${INCLUDEDIR}/lpsolve +} + +#mee_install() { +# bee_install +#}