Prechádzať zdrojové kódy

Ports: Add support for zip files and ensure configure is executable (#773)

Dan MacDonald 5 rokov pred
rodič
commit
d76fb99403
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      Ports/.port_include.sh

+ 4 - 0
Ports/.port_include.sh

@@ -50,6 +50,9 @@ func_defined fetch || fetch() {
             *.gz)
             *.gz)
                 run_nocd gunzip "$filename"
                 run_nocd gunzip "$filename"
                 ;;
                 ;;
+            *.zip)
+                run_nocd bsdtar xf "$filename"
+                ;;
             *)
             *)
                 echo "Note: no case for file $filename."
                 echo "Note: no case for file $filename."
                 ;;
                 ;;
@@ -152,6 +155,7 @@ do_fetch() {
 do_configure() {
 do_configure() {
     if [ "$useconfigure" = "true" ]; then
     if [ "$useconfigure" = "true" ]; then
         echo "Configuring $port!"
         echo "Configuring $port!"
+        chmod +x "${workdir}"/"$configscript"
         configure
         configure
     else
     else
         echo "This port does not use a configure script. Skipping configure step."
         echo "This port does not use a configure script. Skipping configure step."