X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; q=dns; s=default; b=NB2FY3VzTpdU0qkyIw5I13uSGmoUIPeytyvUax+VCep e8qYChjlNk4Fml7EjZvekim0siFt4xqdoI34JdeX44/y836Cc+RwxJ4RxRHRyYjW htQoUKA6JEQE7g+JsHU9DfemQ7Rcgs0D3U2POdChCQ+4/Xh7a+2ASJh7V39HyuJg = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; s=default; bh=g7UT19Qosnvxy3+eXoAOQlvnlnk=; b=jmtXt0VzG51Uk8KqE xObb+dLXnD+hbg0QpbTj4PV9rWE0+UBMxHEixZYyE9GhoxpKrPlgoTPsVFJ0idU7 NjNSlRn7sabx189aWGhN2SNmdj3JJLR0enulFMYvijlC77krv8NNCgaBZeWyK6FU 1gUaLHJYW9RlB1VoW+Km7h2VXY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,GARBLED_BODY,KAM_INFOUSME,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <1422866036.2835.16.camel@cygwin.com> Subject: Re: Question about package version number From: Yaakov Selkowitz To: cygwin AT cygwin DOT com Date: Mon, 02 Feb 2015 02:33:56 -0600 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Note-from-DJ: This may be spam On Mon, 2015-02-02 at 15:03 +0800, 陳韋任 wrote: > I have made package for HIDAPI [1], and here is the cygport: > > -------- > CROSS_HOST="x86_64-w64-mingw32" > inherit cross While I'm not against adding libraries to the mingw64 toolchains -- in fact, I have a number of them in Ports -- is that really your intention? Would this library be usable from within Cygwin? > NAME="mingw64-x86_64-libhidapi0.8" From looking at the upstream sources, this is not parallel-installable with other versions of hidapi, so this should be just "mingw64-x86_64-hidapi". > VERSION=master This is wrong; VERSION must at least start with a numerical component. > RELEASE=1 > CATEGORY="Libs" IMO cross-compiler libraries should go into Devel, but I suppose that's debatable. > SUMMARY="USB library" This should be more specific, particularly if you are intending it to be used with the mingw64 toolchain. > DESCRIPTION="C Library for USB/Bluetooth HID device access from Linux, > Mac OS X, FreeBSD, and Windows." > HOMEPAGE="http://www.signal11.us/oss/hidapi/" > SRC_URI="https://github.com/signal11/hidapi/downloads/hidapi-${VERSION}.zip" > SRC_DIR="hidapi-${VERSION}" > -------- > > The package is made against the git head, but I can only download > the tarball as hidapi-master.zip. > > What VERSION should I use here? The libhidapi package on Ubuntu is > marked as 0.8.0-rc1 [2], should I follow this convention? 0.8.0-rc1 is the latest tag ("release") in git, so if you want that: VERSION=0.8.0-rc1 ... SRC_URI="https://github.com/signal11/hidapi/archive/hidapi-${VERSION}/hidapi-hidapi-${VERSION}.tar.gz SRC_DIR="hidapi-hidapi-${VERSION}" However, there have been several changes in git since then, so you may want to include the Windows-relevant ones by adding: PATCH_URI=" https://github.com/signal11/hidapi/commit/627f3aa478e8099e3660d6a429f1584eeca0724c.patch https://github.com/signal11/hidapi/commit/171a521b91add62c19343100df62b15ecd8f3216.patch https://github.com/signal11/hidapi/commit/54eb31dc16dcc67d0b689ed947bc53a038608c0e.patch " HTH, Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple