Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
298 additions
and
9 deletions.
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 @@ | ||
9 |
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,15 @@ | ||
Source: ponyc | ||
Maintainer: Pony Core Team <buildbot@pony.groups.io> | ||
Build-Depends: debhelper (>= 9.0.0), git, zlib1g-dev, libncurses5-dev, libssl-dev, libpcre2-dev, llvm-3.9, llvm-3.9-dev | ||
Priority: optional | ||
Standards-Version: 3.9.7 | ||
Section: devel | ||
|
||
Package: ponyc | ||
Priority: optional | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends}, zlib1g-dev, libssl-dev, libpcre2-dev, gcc | ||
Description: pony language compiler | ||
Compiler for the pony programming language. | ||
Pony is an open-source, actor-model, capabilities-secure, high performance programming language | ||
http://www.ponylang.org |
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,66 @@ | ||
#!/usr/bin/make -f | ||
# See debhelper(7) (uncomment to enable) | ||
# output every command that modifies files on the build system. | ||
export DH_VERBOSE = 1 | ||
|
||
|
||
# see FEATURE AREAS in dpkg-buildflags(1) | ||
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
|
||
# see ENVIRONMENT in dpkg-buildflags(1) | ||
# package maintainers to append CFLAGS | ||
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic | ||
# package maintainers to append LDFLAGS | ||
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed | ||
|
||
dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1))) | ||
DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog -SDistribution) | ||
|
||
MAKE_OPTIONS := prefix=/usr | ||
|
||
ifeq ($(DEB_HOST_ARCH),amd64) | ||
ifeq ($(DEB_DISTRIBUTION),trusty) | ||
MAKE_OPTIONS += arch=x86-64 tune=generic | ||
else | ||
MAKE_OPTIONS += arch=x86-64 tune=intel | ||
endif | ||
endif | ||
|
||
ifeq ($(DEB_HOST_ARCH),s390x) | ||
MAKE_OPTIONS += arch=z900 tune=z900 | ||
endif | ||
|
||
ifeq ($(DEB_HOST_ARCH),armhf) | ||
MAKE_OPTIONS += arch=armv7 tune=arm7 | ||
endif | ||
|
||
# trusty, xenial and artful are on openssl 1.0 | ||
# artful and newer require PIC | ||
ifeq (,$(filter $(DEB_DISTRIBUTION),trusty xenial artful)) | ||
MAKE_OPTIONS += default_ssl='openssl_1.1.0' default_pic=true | ||
else | ||
ifeq ($(DEB_DISTRIBUTION),artful) | ||
MAKE_OPTIONS += default_pic=true | ||
endif | ||
endif | ||
|
||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
env | ||
uname -m | ||
dh_auto_build -- $(MAKE_OPTIONS) | ||
|
||
override_dh_auto_install: | ||
dh_auto_install -- $(MAKE_OPTIONS) | ||
|
||
override_dh_auto_test: | ||
$(MAKE) test-ci $(MAKE_OPTIONS) | ||
|
||
# dh_make generated override targets | ||
# This is example for Cmake (See https://bugs.debian.org/641051 ) | ||
#override_dh_auto_configure: | ||
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) | ||
|
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 @@ | ||
3.0 (quilt) |
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,88 @@ | ||
%global ponyc_version %(ls %{_sourcedir} | egrep -o '[0-9]+\.[0-9]+\.[0-9]+' || cat ../../VERSION) | ||
%global release_version 1 | ||
|
||
%ifarch x86_64 | ||
%global arch_build_args arch=x86-64 tune=intel | ||
%endif | ||
|
||
%if 0%{?el7} | ||
%global arch_build_args arch=x86-64 tune=generic LLVM_CONFIG=/usr/lib64/llvm3.9/bin/llvm-config | ||
%global extra_build_args use="llvm_link_static" | ||
%else | ||
%if %{?_vendor} == suse | ||
%global extra_build_args default_ssl='openssl_1.1.0' | ||
%else | ||
%global extra_build_args default_ssl='openssl_1.1.0' LLVM_CONFIG=/usr/lib64/llvm3.9/bin/llvm-config | ||
%endif | ||
%endif | ||
|
||
Name: ponyc | ||
Version: %{ponyc_version} | ||
Release: %{release_version}%{?dist} | ||
Packager: Pony Core Team <buildbot@pony.groups.io> | ||
Summary: Compiler for the pony programming language. | ||
# For a breakdown of the licensing, see PACKAGE-LICENSING | ||
License: BSD | ||
URL: https://github.com/ponylang/ponyc | ||
Source0: https://github.com/ponylang/ponyc/archive/%{version}.tar.gz | ||
BuildRequires: git | ||
BuildRequires: gcc-c++ | ||
BuildRequires: make | ||
BuildRequires: pcre2-devel | ||
BuildRequires: zlib-devel | ||
BuildRequires: ncurses-devel | ||
|
||
%if %{?_vendor} == suse | ||
BuildRequires: libopenssl-devel | ||
BuildRequires: binutils-gold | ||
BuildRequires: llvm-devel | ||
%else | ||
BuildRequires: openssl-devel | ||
BuildRequires: libatomic | ||
BuildRequires: llvm3.9-devel | ||
%endif | ||
|
||
%if 0%{?el7} | ||
BuildRequires: llvm3.9-static | ||
%endif | ||
|
||
Requires: gcc-c++ | ||
Requires: openssl-devel | ||
Requires: pcre2-devel | ||
|
||
%if %{?_vendor} == suse | ||
Requires: binutils-gold | ||
%endif | ||
|
||
%description | ||
Compiler for the pony programming language. | ||
|
||
Pony is an open-source, actor-model, capabilities-secure, high performance programming language | ||
http://www.ponylang.org | ||
|
||
%global debug_package %{nil} | ||
|
||
%prep | ||
%setup | ||
|
||
%build | ||
%{?build_command_prefix}make %{?arch_build_args} %{?extra_build_args} prefix=/usr %{?_smp_mflags} test-ci%{?build_command_postfix} | ||
|
||
%install | ||
%{?build_command_prefix}make install %{?arch_build_args} %{?extra_build_args} prefix=%{_prefix} DESTDIR=$RPM_BUILD_ROOT%{?build_command_postfix} | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%{_prefix}/bin/ponyc | ||
%{_prefix}/lib/libponyrt-pic.a | ||
%{_prefix}/lib/libponyc.a | ||
%{_prefix}/lib/pony | ||
%{_prefix}/lib/libponyrt.a | ||
%{_prefix}/include/pony.h | ||
%{_prefix}/include/pony | ||
|
||
%changelog | ||
* Tue May 29 2018 Dipin Hora <dipin@wallaroolabs.com> 0.22.2-1 | ||
- Initial version of spec file |
Binary file not shown.
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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.22.2 | ||
0.22.3 |
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 |
---|---|---|
|
@@ -886,6 +886,8 @@ actor Main | |
else | ||
return | ||
end | ||
|
||
n = n + 1 | ||
end | ||
end | ||
|
||
|
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
Oops, something went wrong.