public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITP] sbt 1.2.3-1
@ 2018-09-22 21:02 Ken Brown
  0 siblings, 0 replies; only message in thread
From: Ken Brown @ 2018-09-22 21:02 UTC (permalink / raw)
  To: cygwin-apps

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

sbt is in Debian and Fedora:

    https://packages.debian.org/source/sid/sbt
    https://apps.fedoraproject.org/packages/sbt ,

although neither has the current version, and Debian's package is in
its unstable distro.

A more serious issue is that sbt requires java, which Cygwin doesn't
provide.  Cygwin users will have to install a JDK for Windows.  This
may or may not disqualify sbt as a Cygwin package.  The only similar
situation I know of is libusb0.

My cygport file is attached.

Package files:

http://sanibeltranquility.com/cygwin/noarch/release/sbt/sbt-1.2.3-1-src.tar.xz
http://sanibeltranquility.com/cygwin/noarch/release/sbt/sbt-1.2.3-1.tar.xz
http://sanibeltranquility.com/cygwin/noarch/release/sbt/sbt-1.2.3-1.hint

License: 2-Clause BSD

Ken

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

NAME="sbt"
VERSION=1.2.3
RELEASE=1
HOMEPAGE="https://github.com/sbt/sbt-launcher-package"

GIT_URI="https://github.com/sbt/sbt-launcher-package.git"
GIT_TAG="v${VERSION}"
inherit git

# The github repo doesn't seem to contain the jar files.  We'll get
# them from the Debian package.
SRC_URI+=" https://dl.bintray.com/sbt/debian/sbt-1.2.3.deb"

CATEGORY="Devel"
SUMMARY="An interactive build tool for Scala, Java, and more"
DESCRIPTION="sbt is an interactive build tool for Scala, Java, and more."
sbt_MESSAGE="In order to use sbt you will need to install a java development kit
for Windows, such as Oracle JDK 8 or OpenJDK 8."

DIFF_EXCLUDES="*.tar *.jar"

src_compile() {
    cd ${S}
    ar -x sbt-1.2.3.deb data.tar
    mkdir -p debian
    cd debian
    tar --wildcards -xf ../data.tar ./usr/share/sbt/bin/*.jar
}

src_install() {
    cd ${S}
    insinto /usr/share/sbt/conf
    doins src/universal/conf/*
    dodoc src/linux/usr/share/doc/sbt/* src/debian/changelog
    doman  src/linux/usr/share/man/man1/*
    exeinto /usr/share/sbt/bin
    doexe src/universal/bin/sbt src/universal/bin/sbt-launch-lib.bash
    insinto /usr/share/sbt/bin
    doins debian/usr/share/sbt/bin/*
    dodir /usr/bin
    dosym /usr/share/sbt/bin/sbt /usr/bin
}

ARCH=noarch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-22 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-22 21:02 [ITP] sbt 1.2.3-1 Ken Brown

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