mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
dmd: new recipe for version 2.067.1 (#1267)
dmd v2.067.1 is useful to build latest version of dmd, because any version above this require bootstrapping to build.
This commit is contained in:
committed by
Jérôme Duval
parent
05fbb58715
commit
7d78c3a415
72
dev-lang/dmd/dmd-2.067.1.recipe
Normal file
72
dev-lang/dmd/dmd-2.067.1.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
SUMMARY="Systems programming language with C-like syntax & static typing"
|
||||
DESCRIPTION="The D programming language was started by Walter Bright, as a \
|
||||
'better C++' and has grown slowly, but steadily, for more than 15 years. Recent \
|
||||
improvements to the D development process have accelerated development of the \
|
||||
language and shown the need for a governing organization that overlooks and \
|
||||
arranges the future development of the D programming language."
|
||||
HOMEPAGE="https://dlang.org/"
|
||||
COPYRIGHT="1999-2014 Digital Mars"
|
||||
LICENSE="Digital Mars"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/dlang/dmd/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="526860456d181bb39ebdb7fb2bbb13e3afe62ec07c588eb5a5e8b8b61627ed8f"
|
||||
PATCHES="dmd-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
dmd$secondaryArchSuffix = $portVersion
|
||||
cmd:dmd$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
dmd_data == $portVersion
|
||||
"
|
||||
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
SUMMARY_data="Standard resource files for dmd"
|
||||
ARCHITECTURES_data="any"
|
||||
PROVIDES_data="
|
||||
dmd_data = $portVersion
|
||||
"
|
||||
REQUIRES_data=""
|
||||
fi
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:curl
|
||||
cmd:git
|
||||
cmd:make
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs -f haiku.mak \
|
||||
DATADIR=$dataDir/dlang
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make $jobArgs -f haiku.mak install \
|
||||
ARCH_SUFFIX=$secondaryArchSuffix \
|
||||
BINDIR=$binDir \
|
||||
DATADIR=$dataDir/dlang \
|
||||
MANDIR=$manDir
|
||||
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
packageEntries data \
|
||||
$dataDir/dlang
|
||||
else
|
||||
rm -rf $dataDir/dlang $manDir
|
||||
fi
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make $jobArgs -f haiku.mak test
|
||||
}
|
||||
46
dev-lang/dmd/licenses/Digital Mars
Normal file
46
dev-lang/dmd/licenses/Digital Mars
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
The Software is not generally available software. It has not undergone
|
||||
testing and may contain errors. The Software was not designed to operate
|
||||
after December 31, 1999. It may be incomplete and it may not function
|
||||
properly. No support or maintenance is provided with this Software. Do
|
||||
not install or distribute the Software if
|
||||
you are not accustomed to using or distributing experimental software.
|
||||
Do not use this software for life critical applications, or applications
|
||||
that could cause significant harm or property damage.
|
||||
|
||||
Digital Mars licenses the Software to you on an "AS IS" basis, without
|
||||
warranty of any kind. DIGITAL MARS AND SYMANTEC HEREBY EXPRESSLY DISCLAIM
|
||||
ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING,
|
||||
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY,
|
||||
NONINFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. You are solely
|
||||
responsible for determining the appropriateness of using this Software and
|
||||
assume all risks associated with the use of this Software, including but not
|
||||
limited to the risks of program errors, damage
|
||||
to or loss of data, programs or equipment, unavailability or interruption of
|
||||
operations and third party claims. You agree to defend, indemnify and hold
|
||||
Digital Mars and Symantec, its subsidiaries, affiliates, directors, officers,
|
||||
employees and agents harmless from all claims or demands made against them
|
||||
(and any related losses, damages, expenses
|
||||
and costs) arising out of your use of the Software. DIGITAL MARS AND SYMANTEC
|
||||
WILL NOT BE LIABLE FOR ANY DIRECT DAMAGES OR FOR ANY SPECIAL, INCIDENTAL, OR
|
||||
INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING
|
||||
LOST PROFITS OR SAVINGS), EVEN IF DIGITAL MARS OR SYMANTEC HAS BEEN ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
Digital Mars and Symantec will not be liable for the loss of, or damage to,
|
||||
your records or data, the records or
|
||||
data of any third party, or any damages claimed by you based on a third party
|
||||
claim.
|
||||
|
||||
If you send any messages to Digital Mars, on either the Digital Mars
|
||||
newsgroups, the Digital Mars mailing list, or via email, you agree not
|
||||
to make any claims of intellectual
|
||||
property rights over the contents of those messages.
|
||||
|
||||
The Software is copyrighted and comes with a single user license,
|
||||
and may not be redistributed. If you wish to obtain a redistribution license,
|
||||
please contact Digital Mars.
|
||||
|
||||
--------------------------------------------
|
||||
Photo credits: Courtesy of NASA/JPL/Caltech
|
||||
--------------------------------------------
|
||||
|
||||
1796
dev-lang/dmd/patches/dmd-2.067.1.patchset
Normal file
1796
dev-lang/dmd/patches/dmd-2.067.1.patchset
Normal file
File diff suppressed because it is too large
Load Diff
39
dev-lang/dmd/patches/dmd-2.073.2.patchset
Normal file
39
dev-lang/dmd/patches/dmd-2.073.2.patchset
Normal file
@@ -0,0 +1,39 @@
|
||||
From 7623d74664b644fb58c692a306d692e601e59900 Mon Sep 17 00:00:00 2001
|
||||
From: raefaldhia <raefaldhiamartya@gmail.com>
|
||||
Date: Fri, 31 Mar 2017 23:27:45 +0000
|
||||
Subject: a
|
||||
|
||||
|
||||
diff --git a/src/osmodel.mak b/src/osmodel.mak
|
||||
index f56716a..4e95132 100644
|
||||
--- a/src/osmodel.mak
|
||||
+++ b/src/osmodel.mak
|
||||
@@ -21,6 +21,9 @@ ifeq (,$(OS))
|
||||
ifeq (SunOS,$(uname_S))
|
||||
OS:=solaris
|
||||
endif
|
||||
+ ifeq (Haiku,$(uname_S))
|
||||
+ OS:=haiku
|
||||
+ endif
|
||||
ifeq (,$(OS))
|
||||
$(error Unrecognized or unsupported OS for uname: $(uname_S))
|
||||
endif
|
||||
@@ -38,10 +41,14 @@ ifeq (,$(MODEL))
|
||||
else
|
||||
uname_M:=$(shell uname -m)
|
||||
endif
|
||||
+ ifeq ($(OS),haiku)
|
||||
+ OS:=linux
|
||||
+ uname_M:=$(shell uname -p)
|
||||
+ endif
|
||||
ifneq (,$(findstring $(uname_M),x86_64 amd64))
|
||||
MODEL:=64
|
||||
endif
|
||||
- ifneq (,$(findstring $(uname_M),i386 i586 i686))
|
||||
+ ifneq (,$(findstring $(uname_M),x86 i386 i586 i686))
|
||||
MODEL:=32
|
||||
endif
|
||||
ifeq (,$(MODEL))
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user