-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from therealpadams/core/R
New core plan for R
- Loading branch information
Showing
6 changed files
with
221 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
pkg_name=R | ||
pkg_origin=core | ||
pkg_version="3.4.0" | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_license=('GPL-2.0+') | ||
pkg_source="https://cran.r-project.org/src/base/R-3/${pkg_name}-${pkg_version}.tar.gz" | ||
pkg_shasum="288e9ed42457c47720780433b3d5c3c20983048b789291cc6a7baa11f9428b91" | ||
pkg_upstream_url="https://www.r-project.org" | ||
pkg_description="R is a free software environment for statistical computing and graphics." | ||
pkg_build_deps=( | ||
core/coreutils | ||
core/diffutils | ||
core/file | ||
core/gcc | ||
core/make | ||
core/perl | ||
core/pkg-config | ||
core/texinfo | ||
) | ||
pkg_deps=( | ||
core/bzip2 | ||
core/cairo | ||
core/curl | ||
core/harfbuzz | ||
core/icu | ||
core/expat | ||
core/fontconfig | ||
core/freetype | ||
core/glib | ||
core/libjpeg-turbo | ||
core/liberation-fonts-ttf | ||
core/libpng | ||
core/libtiff | ||
core/pango | ||
core/pcre | ||
core/pixman | ||
core/readline | ||
core/xz | ||
core/zlib | ||
) | ||
pkg_bin_dirs=(lib64/R/bin) | ||
pkg_include_dirs=(lib64/R/include) | ||
pkg_lib_dirs=(lib64/R/lib) | ||
|
||
do_build() { | ||
sed -i '/#include.*<cairo-xlib.h>/d' ./configure | ||
./configure --prefix="${pkg_prefix}" \ | ||
--with-x=no \ | ||
--disable-java \ | ||
--enable-memory-profiling | ||
make | ||
} | ||
|
||
do_check() { | ||
make test | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
pkg_name=cairo | ||
pkg_origin=core | ||
pkg_version="1.14.8" | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_license=( | ||
'LGPL-2.1' | ||
'MPL-1.1' | ||
) | ||
pkg_source="https://www.cairographics.org/releases/${pkg_name}-${pkg_version}.tar.xz" | ||
pkg_shasum="d1f2d98ae9a4111564f6de4e013d639cf77155baf2556582295a0f00a9bc5e20" | ||
pkg_description="Cairo is a 2D graphics library with support for multiple output devices." | ||
pkg_upstream_url="https://www.cairographics.org" | ||
pkg_deps=( | ||
core/expat | ||
core/fontconfig | ||
core/freetype | ||
core/glib | ||
core/libpng | ||
core/pcre | ||
core/pixman | ||
core/zlib | ||
) | ||
pkg_build_deps=( | ||
core/diffutils | ||
core/gcc | ||
core/make | ||
core/pkg-config | ||
) | ||
pkg_bin_dirs=(bin) | ||
pkg_include_dirs=(include/cairo) | ||
pkg_lib_dirs=( | ||
lib | ||
lib/cairo | ||
) | ||
pkg_pconfig_dirs=(lib/pkgconfig) | ||
|
||
do_build() { | ||
CFLAGS="-Os ${CFLAGS}" | ||
|
||
./configure --prefix="${pkg_prefix}" \ | ||
--disable-xlib | ||
make | ||
} | ||
|
||
do_check() { | ||
make test | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pkg_name=harfbuzz | ||
pkg_origin=core | ||
pkg_version=1.3.1 | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_license=('MIT') | ||
pkg_upstream_url="https://www.freedesktop.org/wiki/Software/HarfBuzz/" | ||
pkg_description="HarfBuzz is an OpenType text shaping engine" | ||
pkg_source=http://www.freedesktop.org/software/harfbuzz/release/${pkg_name}-${pkg_version}.tar.bz2 | ||
pkg_shasum=a242206dd119d5e6cc1b2253c116abbae03f9d930cb60b515fb0d248decf89a1 | ||
pkg_deps=( | ||
core/cairo | ||
core/expat | ||
core/freetype | ||
core/fontconfig | ||
core/glib | ||
core/glibc | ||
core/icu | ||
core/libpng | ||
core/pixman | ||
core/pcre | ||
core/zlib | ||
) | ||
pkg_build_deps=( | ||
core/gcc | ||
core/perl | ||
core/pkg-config | ||
core/make | ||
) | ||
pkg_bin_dirs=(bin) | ||
pkg_include_dirs=(include/harfbuzz) | ||
pkg_lib_dirs=(lib) | ||
|
||
do_build() { | ||
./configure --prefix="$pkg_prefix" \ | ||
--with-gobject=yes | ||
make | ||
} | ||
|
||
do_install() { | ||
make install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pkg_name=liberation-fonts-ttf | ||
pkg_origin=core | ||
pkg_version="2.00.1" | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_license=('OFL-1.1') | ||
pkg_source="https://releases.pagure.org/liberation-fonts/$pkg_name-$pkg_version.tar.gz" | ||
pkg_shasum="7890278a6cd17873c57d9cd785c2d230d9abdea837e96516019c5885dd271504" | ||
pkg_deps=(core/fontconfig) | ||
pkg_description="The Liberation Fonts are intended to be replacements for the three most commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier New." | ||
pkg_upstream_url="https://pagure.io/liberation-fonts" | ||
|
||
do_build() { | ||
return 0 | ||
} | ||
|
||
do_install() { | ||
mv ./*ttf "$pkg_prefix/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
pkg_name=pango | ||
pkg_origin=core | ||
pkg_version="1.40.6" | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_license=('LGPL') | ||
pkg_source="http://ftp.gnome.org/pub/GNOME/sources/pango/1.40/$pkg_name-$pkg_version.tar.xz" | ||
pkg_shasum="ca152b7383a1e9f7fd74ae96023dc6770dc5043414793bfe768ff06b6759e573" | ||
pkg_upstream_url="http://www.pango.org" | ||
pkg_description="Pango is a library for laying out and rendering of text, with an emphasis on internationalization." | ||
pkg_deps=( | ||
core/cairo | ||
core/bzip2 | ||
core/coreutils | ||
core/fontconfig | ||
core/freetype | ||
core/glib | ||
core/glibc | ||
core/harfbuzz | ||
core/libpng | ||
core/pcre | ||
core/pixman | ||
core/zlib | ||
) | ||
pkg_build_deps=( | ||
core/diffutils | ||
core/expat | ||
core/file | ||
core/gcc | ||
core/libffi | ||
core/make | ||
core/patch | ||
core/perl | ||
core/pkg-config | ||
core/util-linux | ||
) | ||
pkg_bin_dirs=(bin) | ||
pkg_include_dirs=(include/pango-1.0/pango) | ||
pkg_lib_dirs=(lib) | ||
pkg_pconfig_dirs=(lib/pkgconfig) | ||
|
||
do_prepare() { | ||
if [ ! -e /usr/bin/file ] | ||
then | ||
ln -sv "$(pkg_path_for core/file)/bin/file" /usr/bin/file | ||
fi | ||
} | ||
|
||
do_build() { | ||
fix_interpreter "$(pkg_path_for core/glib)/bin/glib-mkenums" core/coreutils bin/env | ||
|
||
./configure --prefix="$pkg_prefix" | ||
make | ||
} | ||
|
||
do_install() { | ||
make install | ||
} |