Commit 69a9e5c30fa78be9f81ee0a970ef16881efd2670

Thomas de Grivel 2023-03-06T16:10:52

libffi

diff --git a/lib/rbpkg/repos/c3.rb b/lib/rbpkg/repos/c3.rb
index 514bf8d..a6b51c7 100644
--- a/lib/rbpkg/repos/c3.rb
+++ b/lib/rbpkg/repos/c3.rb
@@ -5,7 +5,7 @@ class Rbpkg::Repos::C3 < Rbpkg::Repo
   end
 
   def self.dependencies
-    ["libbsd", "libmd"]
+    ["libbsd", "libffi", "libmd"]
   end
 
   def git_url
diff --git a/lib/rbpkg/repos/libffi.rb b/lib/rbpkg/repos/libffi.rb
new file mode 100644
index 0000000..dfa14a1
--- /dev/null
+++ b/lib/rbpkg/repos/libffi.rb
@@ -0,0 +1,16 @@
+class Rbpkg::Repos::Libffi < Rbpkg::Repo
+
+  def_name("libffi")
+
+  def self.dependencies
+    []
+  end
+
+  def dir
+    "libffi/libffi"
+  end
+
+  def git_url
+    "https://git.kmx.io/c3-lang/libffi.git"
+  end
+end