Skip to content

Commit

Permalink
git: Add port
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Bonke <[email protected]>
  • Loading branch information
Dennisbonke committed Oct 8, 2022
1 parent 1c235a3 commit 3e1d60c
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
54 changes: 54 additions & 0 deletions bootstrap.d/dev-vcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
packages:
- name: git
metadata:
summary: The Git version control system
description: Git is one of the most used version control systems designed to handle large projects efficiently.
spdx: 'GPL-2'
website: 'https://www.git-scm.com/'
maintainer: "Dennis Bonke <[email protected]>"
categories: ['dev-vcs']
source:
subdir: 'ports'
git: 'https://github.com/git/git.git'
tag: 'v2.32.0'
version: '2.32.0'
tools_required:
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
regenerate:
- args: ['autoreconf']
tools_required:
- host-pkg-config
- system-gcc
- virtual: pkgconfig-for-target
triple: "@OPTION:arch-triple@"
pkgs_required:
- mlibc
- python
- libexpat
- zlib
- openssl
- curl
- libiconv
- pcre
configure:
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/.', '@THIS_BUILD_DIR@']
- args:
- './configure'
- '--host=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--with-python=python3'
- '--with-gitconfig=/etc/gitconfig'
- '--with-curl=@SYSROOT_DIR@/usr'
- '--without-iconv'
- '--with-libpcre'
- 'ac_cv_fread_reads_directories=1'
- 'ac_cv_snprintf_returns_bogus=1'
environ:
CURL_CONFIG: '@SYSROOT_DIR@/usr/bin/curl-config'
build:
- args: ['make', 'NO_GETTEXT=YesPlease', '-j@PARALLELISM@']
- args: ['make', 'NO_GETTEXT=YesPlease', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'
1 change: 1 addition & 0 deletions bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ imports:
- file: bootstrap.d/dev-libs.yml
- file: bootstrap.d/dev-util.yml
- file: bootstrap.d/dev-qt.yml
- file: bootstrap.d/dev-vcs.yml
- file: bootstrap.d/games-board.yml
- file: bootstrap.d/games-fps.yml
- file: bootstrap.d/games-misc.yml
Expand Down
35 changes: 35 additions & 0 deletions patches/git/0001-Initial-Managarm-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 53584e9beb2c607d6dd77422db652c6014ddabcb Mon Sep 17 00:00:00 2001
From: Dennis Bonke <[email protected]>
Date: Fri, 16 Jul 2021 15:58:28 +0200
Subject: [PATCH] Initial Managarm support

Signed-off-by: Dennis Bonke <[email protected]>
---
config.mak.uname | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/config.mak.uname b/config.mak.uname
index cb443b4e02..6cb9520c54 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -4,12 +4,12 @@
# Microsoft's Safe Exception Handling in libraries (such as zlib).
# Typically required for VS2013+/32-bit compilation on Vista+ versions.

-uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
-uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
-uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
-uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
-uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
-uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
+uname_S := #$(shell sh -c 'uname -s 2>/dev/null || echo not')
+uname_M := #$(shell sh -c 'uname -m 2>/dev/null || echo not')
+uname_O := #$(shell sh -c 'uname -o 2>/dev/null || echo not')
+uname_R := #$(shell sh -c 'uname -r 2>/dev/null || echo not')
+uname_P := #$(shell sh -c 'uname -p 2>/dev/null || echo not')
+uname_V := #$(shell sh -c 'uname -v 2>/dev/null || echo not')

ifdef MSVC
# avoid the MingW and Cygwin configuration sections
2.32.0

0 comments on commit 3e1d60c

Please sign in to comment.