[ITP] liblbfgs 1.10

Marco Atzeri marco.atzeri@gmail.com
Sat Oct 27 16:54:00 GMT 2018


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
-------------- next part --------------
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"

PKG_CONTENTS[0]="usr/bin/cyglbfgs-${abi}.dll"
PKG_SUMMARY[0]="${SUMMARY} - runtime"

PKG_CONTENTS[1]="usr/include/ usr/lib/ usr/share/doc/"
PKG_SUMMARY[1]="${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
}


More information about the Cygwin-apps mailing list