summaryrefslogtreecommitdiff
path: root/homebrew/geant4
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/geant4
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/geant4')
-rw-r--r--homebrew/geant4/.beer82
-rw-r--r--homebrew/geant4/.make.sh-auto5
-rw-r--r--homebrew/geant4/_metadata/description1
-rw-r--r--homebrew/geant4/_metadata/homepage1
-rw-r--r--homebrew/geant4/_metadata/name1
-rw-r--r--homebrew/geant4/_metadata/version1
-rwxr-xr-xhomebrew/geant4/download.sh1
7 files changed, 92 insertions, 0 deletions
diff --git a/homebrew/geant4/.beer b/homebrew/geant4/.beer
new file mode 100644
index 000000000..be3fe3d70
--- /dev/null
+++ b/homebrew/geant4/.beer
@@ -0,0 +1,82 @@
+{
+ "name": "Geant4",
+ "description": "Simulation toolkit for particle transport through matter",
+ "url": "https://geant4-data.web.cern.ch/geant4-data/releases/source/geant4.10.05.tar.gz",
+ "mirror": null,
+ "homepage": "https://geant4.web.cern.ch",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": false
+ },
+ {
+ "depend": "qt",
+ "build-depend": false
+ },
+ {
+ "depend": "xerces-c",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "G4NDL",
+ "url": "https://cern.ch/geant4-data/datasets/G4NDL.4.5.tar.gz"
+ },
+ {
+ "name": "G4EMLOW",
+ "url": "https://cern.ch/geant4-data/datasets/G4EMLOW.7.7.tar.gz"
+ },
+ {
+ "name": "PhotonEvaporation",
+ "url": "https://cern.ch/geant4-data/datasets/G4PhotonEvaporation.5.3.tar.gz"
+ },
+ {
+ "name": "RadioactiveDecay",
+ "url": "https://cern.ch/geant4-data/datasets/G4RadioactiveDecay.5.3.tar.gz"
+ },
+ {
+ "name": "G4SAIDDATA",
+ "url": "https://cern.ch/geant4-data/datasets/G4SAIDDATA.2.0.tar.gz"
+ },
+ {
+ "name": "G4PARTICLEXS",
+ "url": "https://cern.ch/geant4-data/datasets/G4PARTICLEXS.1.1.tar.gz"
+ },
+ {
+ "name": "G4ABLA",
+ "url": "https://cern.ch/geant4-data/datasets/G4ABLA.3.1.tar.gz"
+ },
+ {
+ "name": "G4INCL",
+ "url": "https://cern.ch/geant4-data/datasets/G4INCL.1.0.tar.gz"
+ },
+ {
+ "name": "G4PII",
+ "url": "https://cern.ch/geant4-data/datasets/G4PII.1.3.tar.gz"
+ },
+ {
+ "name": "G4ENSDFSTATE",
+ "url": "https://cern.ch/geant4-data/datasets/G4ENSDFSTATE.2.2.tar.gz"
+ },
+ {
+ "name": "RealSurface",
+ "url": "https://cern.ch/geant4-data/datasets/G4RealSurface.2.1.1.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "mkdir \"geant-build\" do",
+ "args = std_cmake_args + %w[",
+ "../",
+ "-DGEANT4_USE_GDML=ON",
+ "-DGEANT4_BUILD_MULTITHREADED=ON",
+ "-DGEANT4_USE_QT=ON",
+ "]",
+ "system \"cmake\", *args",
+ "system \"make\", \"install\""
+ ],
+ "version": "4.10.05",
+ "file": "geant4.rb"
+} \ No newline at end of file
diff --git a/homebrew/geant4/.make.sh-auto b/homebrew/geant4/.make.sh-auto
new file mode 100644
index 000000000..f4ebada9b
--- /dev/null
+++ b/homebrew/geant4/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+mkdir "geant-build" && cd geant-build
+args = std_cmake_args + %w[../ -DGEANT4_USE_GDML=ON -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_QT=ON ]
+cmake *args
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/geant4/_metadata/description b/homebrew/geant4/_metadata/description
new file mode 100644
index 000000000..1ecd201bb
--- /dev/null
+++ b/homebrew/geant4/_metadata/description
@@ -0,0 +1 @@
+Simulation toolkit for particle transport through matter
diff --git a/homebrew/geant4/_metadata/homepage b/homebrew/geant4/_metadata/homepage
new file mode 100644
index 000000000..ba0d5cfd2
--- /dev/null
+++ b/homebrew/geant4/_metadata/homepage
@@ -0,0 +1 @@
+https://geant4.web.cern.ch
diff --git a/homebrew/geant4/_metadata/name b/homebrew/geant4/_metadata/name
new file mode 100644
index 000000000..ab141b72b
--- /dev/null
+++ b/homebrew/geant4/_metadata/name
@@ -0,0 +1 @@
+Geant4
diff --git a/homebrew/geant4/_metadata/version b/homebrew/geant4/_metadata/version
new file mode 100644
index 000000000..333fc42bd
--- /dev/null
+++ b/homebrew/geant4/_metadata/version
@@ -0,0 +1 @@
+4.10.05
diff --git a/homebrew/geant4/download.sh b/homebrew/geant4/download.sh
new file mode 100755
index 000000000..ae5afdbce
--- /dev/null
+++ b/homebrew/geant4/download.sh
@@ -0,0 +1 @@
+wget https://geant4-data.web.cern.ch/geant4-data/releases/source/geant4.10.05.tar.gz \ No newline at end of file