inconsolata: Update recipe

* Convert to .recipe format
* Move extra downloads from INSTALL() to SRC_URI_$n
This commit is contained in:
Chirayu Desai
2015-01-07 17:16:16 +00:00
parent 8788d59d5c
commit c41c21ac49

View File

@@ -1,26 +1,41 @@
DESCRIPTION="Inconsolata Programmer's font"
SUMMARY="Inconsolata Programmer's font"
DESCRIPTION="Inconsolata is a monospace font, designed for code listings \
and the like, in print. There are a great many 'programmer fonts,' designed \
primarily for use on the screen, but in most cases do not have the attention \
to detail for high resolution rendering."
HOMEPAGE="http://www.levien.com/type/myfonts/inconsolata.html"
SRC_URI="http://media.nodnod.net/Inconsolata-dz.otf.zip"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="8510443343f43382566511e73abc06f8"
CHECKSUM_SHA256="002fed4b8c1e5417c03f9b55e009acc682da08b13cdbf8f601f52efaf5324d58"
SRC_URI_2="http://levien.com/type/myfonts/Inconsolata.otf#noarchive"
CHECKSUM_SHA256_2="1561e616c414a1b82d6e6dfbd18e5726fd65028913ade191e5fa38b6ec375a1a"
SRC_URI_3="http://www.cosmix.org/software/files/InconsolataHellenic.zip"
CHECKSUM_SHA256_3="415f6cd9badb1eefa90be8b10e6316e87f9824856b5e407213334bf5a77873e7"
REVISION="3"
LICENSE="SIL Open Font License v1.1"
COPYRIGHT="2006 Raph Levien
2009 David Zhou
2010-2012 Dimosthenis Kaponis
"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE=yes
PROVIDES="inconsolata = $portVersion"
REQUIRES=""
BUILD_REQUIRES=""
BUILD_PREREQUIRES="coreutils"
SOURCE_DIR=""
BUILD()
{
echo "No building required."
true
}
INSTALL()
{
FONTDIR=${fontsDir}/otfonts
mkdir -p ${FONTDIR}
wget http://levien.com/type/myfonts/Inconsolata.otf
wget http://www.cosmix.org/software/files/InconsolataHellenic.zip
unzip -o InconsolataHellenic.zip
cp -r *.otf ${FONTDIR}/
}
LICENSE="SIL Open Font License v1.1"
COPYRIGHT="2006 Raph Levien
2009 David Zhou
2010-2012 Dimosthenis Kaponis"