public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITP] liblbfgs 1.10
@ 2018-10-27 15:20 Masamichi Hosoda
  2018-10-27 16:54 ` Marco Atzeri
  0 siblings, 1 reply; 5+ messages in thread
From: Masamichi Hosoda @ 2018-10-27 15:20 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: Text/Plain, Size: 2276 bytes --]

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

[-- Attachment #2: liblbfgs.cygport --]
[-- Type: Text/Plain, Size: 780 bytes --]

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
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITP] liblbfgs 1.10
  2018-10-27 15:20 [ITP] liblbfgs 1.10 Masamichi Hosoda
@ 2018-10-27 16:54 ` Marco Atzeri
  2018-10-28  2:42   ` Masamichi Hosoda
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Atzeri @ 2018-10-27 16:54 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

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

[-- Attachment #2: liblbfgs.cygport --]
[-- Type: text/plain, Size: 919 bytes --]

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
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITP] liblbfgs 1.10
  2018-10-27 16:54 ` Marco Atzeri
@ 2018-10-28  2:42   ` Masamichi Hosoda
  2018-10-28  2:46     ` Masamichi Hosoda
  0 siblings, 1 reply; 5+ messages in thread
From: Masamichi Hosoda @ 2018-10-28  2:42 UTC (permalink / raw)
  To: marco.atzeri; +Cc: cygwin-apps

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITP] liblbfgs 1.10
  2018-10-28  2:42   ` Masamichi Hosoda
@ 2018-10-28  2:46     ` Masamichi Hosoda
  2018-10-28  9:35       ` Marco Atzeri
  0 siblings, 1 reply; 5+ messages in thread
From: Masamichi Hosoda @ 2018-10-28  2:46 UTC (permalink / raw)
  To: marco.atzeri; +Cc: cygwin-apps

[-- Attachment #1: Type: Text/Plain, Size: 229 bytes --]

> 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.

[-- Attachment #2: liblbfgs.cygport --]
[-- Type: Text/Plain, Size: 967 bytes --]

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
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ITP] liblbfgs 1.10
  2018-10-28  2:46     ` Masamichi Hosoda
@ 2018-10-28  9:35       ` Marco Atzeri
  0 siblings, 0 replies; 5+ messages in thread
From: Marco Atzeri @ 2018-10-28  9:35 UTC (permalink / raw)
  To: Masamichi Hosoda; +Cc: cygwin-apps

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-28  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-27 15:20 [ITP] liblbfgs 1.10 Masamichi Hosoda
2018-10-27 16:54 ` Marco Atzeri
2018-10-28  2:42   ` Masamichi Hosoda
2018-10-28  2:46     ` Masamichi Hosoda
2018-10-28  9:35       ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).