[ITP] liblbfgs 1.10

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[ITP] liblbfgs 1.10

Masamichi Hosoda
liblbfgs is in Debian and Fedora:

https://packages.debian.org/source/stretch/liblbfgs
https://apps.fedoraproject.org/packages/liblbfgs

My cygport file is attached.
Please review.

Package files:

https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-1.10-1-src.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.tar.xz

https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-1.10-1-src.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.tar.xz

License: MIT

NAME="liblbfgs"
VERSION=1.10
RELEASE=1

HOMEPAGE="http://www.chokkan.org/software/${PN}/"
SRC_URI="
        https://github.com/downloads/chokkan/${PN}/${PN}-${PV}.tar.gz
        ${PN}.pc
"
PATCH_URI="libtool-package-versioning.patch"

CATEGORY="Libs"
SUMMARY="L-BFGS nonlinear optimizer"
DESCRIPTION="This library is a C port of the implementation of
Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) method.
The L-BFGS method solves the unconstrainted minimization problems."

abi=1

PKG_NAMES="${PN} ${PN}${abi} ${PN}-devel"

PKG_CONTENTS[0]=""
liblbfgs_REQUIRES=${PN}${abi}

PKG_CONTENTS[1]="usr/bin/ usr/share/doc/"

PKG_CONTENTS[2]="usr/include/ usr/lib/"

src_install() {
        cd ${B}
        cyginstall
        cd ${S}
        dodir /usr/lib/pkgconfig
        insinto /usr/lib/pkgconfig
        doins ${PN}.pc
}
Reply | Threaded
Open this post in threaded view
|

Re: [ITP] liblbfgs 1.10

marco atzeri-4
Am 27.10.2018 um 17:20 schrieb Masamichi Hosoda:
> liblbfgs is in Debian and Fedora:
>
> https://packages.debian.org/source/stretch/liblbfgs
> https://apps.fedoraproject.org/packages/liblbfgs
>
> My cygport file is attached.
> Please review.
>

it builds fine on 64 bit.

However the SUMMARY should be differentiated between the
runtime and the devel package and there is no need for an empty
package.

Attached suggested modification and test using the built sample.

Regards
Marco




---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

liblbfgs.cygport (960 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [ITP] liblbfgs 1.10

Masamichi Hosoda
> it builds fine on 64 bit.
>
> However the SUMMARY should be differentiated between the
> runtime and the devel package and there is no need for an empty
> package.
>
> Attached suggested modification and test using the built sample.

Thank you for your reviewing.

Setting a value in the PKG_SUMMARY array has no effect.
So I use `eval` for setting the subpackage summaries.

My updated cygport file is attached.

Updated package files:

https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-1.10-1-src.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86_64/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.tar.xz

https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-1.10-1-src.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs1/liblbfgs1-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-debuginfo/liblbfgs-debuginfo-1.10-1.tar.xz
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.hint
https://trueroad.github.io/tr-cygwin-packages-dist/dist/x86/release/liblbfgs/liblbfgs-devel/liblbfgs-devel-1.10-1.tar.xz
Reply | Threaded
Open this post in threaded view
|

Re: [ITP] liblbfgs 1.10

Masamichi Hosoda
> Thank you for your reviewing.
>
> Setting a value in the PKG_SUMMARY array has no effect.
> So I use `eval` for setting the subpackage summaries.
>
> My updated cygport file is attached.

My updated cygport file is attached.

NAME="liblbfgs"
VERSION=1.10
RELEASE=1

HOMEPAGE="http://www.chokkan.org/software/${PN}/"
SRC_URI="
        https://github.com/downloads/chokkan/${PN}/${PN}-${PV}.tar.gz
        ${PN}.pc
"
PATCH_URI="libtool-package-versioning.patch"

CATEGORY="Libs"
SUMMARY="L-BFGS nonlinear optimizer"
DESCRIPTION="This library is a C port of the implementation of
Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) method.
The L-BFGS method solves the unconstrainted minimization problems."

abi=1

PKG_NAMES="${PN}${abi} ${PN}-devel"

eval ${PN}${abi}_CONTENTS='"usr/bin/cyglbfgs-${abi}.dll"'
eval ${PN}${abi}_SUMMARY='"${SUMMARY} - runtime"'

eval ${PN}_devel_CONTENTS='"usr/include/ usr/lib/ usr/share/doc/"'
eval ${PN}_devel_SUMMARY='"${SUMMARY} - header and import lib"'

src_install() {
        cd ${B}
        cyginstall
        cd ${S}
        dodir /usr/lib/pkgconfig
        insinto /usr/lib/pkgconfig
        doins ${PN}.pc
}

src_test() {
        export PATH=${B}/lib/.libs:${PATH}
        cd ${B}/sample
        .libs/sample.exe
}
Reply | Threaded
Open this post in threaded view
|

Re: [ITP] liblbfgs 1.10

marco atzeri-4
Am 28.10.2018 um 03:45 schrieb Masamichi Hosoda:
>> Thank you for your reviewing.
>>
>> Setting a value in the PKG_SUMMARY array has no effect.
>> So I use `eval` for setting the subpackage summaries.
>>
>> My updated cygport file is attached.
>
> My updated cygport file is attached.
>

GTG.

the "eval" is a very elegant solution

Regards
Marco



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus