From f4ff1b95c99d7539af1fdfa47b4164b7f942f426 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sun, 3 Jun 2012 19:23:57 +0000 Subject: [PATCH] Lowlevel cpu routines to get basic properties of the cpu platform, like endianness and architecture. WWW: http://github.com/vincenthz/hs-cpu Obtained from: FreeBSD Haskell --- lang/ghc/bsd.hackage.mk | 1 + sysutils/hs-cpu/Makefile | 20 ++++++++++++++++++++ sysutils/hs-cpu/distinfo | 2 ++ sysutils/hs-cpu/pkg-descr | 4 ++++ 4 files changed, 27 insertions(+) create mode 100644 sysutils/hs-cpu/Makefile create mode 100644 sysutils/hs-cpu/distinfo create mode 100644 sysutils/hs-cpu/pkg-descr diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk index 12436f35750c..26b663490b7a 100644 --- a/lang/ghc/bsd.hackage.mk +++ b/lang/ghc/bsd.hackage.mk @@ -68,6 +68,7 @@ convertible-text_port= devel/hs-convertible-text cookie_port= www/hs-cookie cpphs_port= devel/hs-cpphs # executable cprng-aes_port= security/hs-cprng-aes +cpu_port= sysutils/hs-cpu criterion_port= benchmarks/hs-criterion Crypto_port= security/hs-Crypto crypto-api_port= security/hs-crypto-api diff --git a/sysutils/hs-cpu/Makefile b/sysutils/hs-cpu/Makefile new file mode 100644 index 000000000000..4db892965883 --- /dev/null +++ b/sysutils/hs-cpu/Makefile @@ -0,0 +1,20 @@ +# New ports collection makefile for: hs-cpu +# Date created: May 9, 2012 +# Whom: haskell@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= cpu +PORTVERSION= 0.1.0 +CATEGORIES= sysutils haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Cpu information and properties helpers + +LICENSE= BSD + +CABAL_SETUP= Setup.hs + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include diff --git a/sysutils/hs-cpu/distinfo b/sysutils/hs-cpu/distinfo new file mode 100644 index 000000000000..8ddfe08228aa --- /dev/null +++ b/sysutils/hs-cpu/distinfo @@ -0,0 +1,2 @@ +SHA256 (cabal/cpu-0.1.0.tar.gz) = cf634b4a0166cc5083473b4f81fe583f22d3c57b91f6eb1fc0124e3c360b1a08 +SIZE (cabal/cpu-0.1.0.tar.gz) = 4166 diff --git a/sysutils/hs-cpu/pkg-descr b/sysutils/hs-cpu/pkg-descr new file mode 100644 index 000000000000..9595e75423fb --- /dev/null +++ b/sysutils/hs-cpu/pkg-descr @@ -0,0 +1,4 @@ +Lowlevel cpu routines to get basic properties of the cpu platform, like +endianness and architecture. + +WWW: http://github.com/vincenthz/hs-cpu