Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
edf339a2
Commit
edf339a2
authored
Aug 11, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack_distr_requies: rewrite in more clean manner
parent
0253f9c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
25 deletions
+31
-25
repl
share/eterbuild/functions/repl
+31
-25
No files found.
share/eterbuild/functions/repl
View file @
edf339a2
...
@@ -56,34 +56,40 @@ add_32bit_requires()
...
@@ -56,34 +56,40 @@ add_32bit_requires()
fi
fi
}
}
# Part of local hack
hack_distr_requires
()
hack_distr_requires
()
{
{
GREP
=
"
$1
"
local
GREP
=
"
$1
"
# Part of local hack
local
NEWRESULT
=
"
$GREP
"
if
[
"
$PKGFORMAT
"
=
"deb"
]
;
then
NEWRESULT
=
`
echo
$GREP
| filter_deb_pkgnames
`
fi
# Add hack for replace lib with lib64 on Mandriva
if
[
"
$DISTRNAME
"
=
"Mandriva"
]
&&
[
$BUILDARCH
=
"x86_64"
]
;
then
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^lib
\(
[^6]
\)
|lib64
\1
|g"
`
fi
if
[
"
$DISTRNAME
"
=
"ArchLinux"
]
;
then
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
|
tr
"[A-Z]"
"[a-z]"
`
fi
if
[
"
$DISTRNAME
"
=
"FreeBSD"
]
;
then
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
`
fi
if
[
"
$DISTRNAME
"
=
"Slackware"
]
||
[
"
$DISTRNAME
"
=
"Gentoo"
]
;
then
NEWRESULT
=
`
echo
$GREP
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
`
fi
echo
"
$NEWRESULT
"
case
"
$PKGFORMAT
"
in
"deb"
)
echo
$GREP
| filter_deb_pkgnames
return
;;
esac
case
"
$DISTRNAME
"
in
"Mandriva"
)
if
[
$BUILDARCH
=
"x86_64"
]
;
then
echo
"
$GREP
"
|
sed
-e
"s|^lib
\(
[^6]
\)
|lib64
\1
|g"
return
fi
;;
"ArchLinux"
)
echo
"
$GREP
"
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
|
tr
"[A-Z]"
"[a-z]"
return
;;
"FreeBSD"
)
echo
"
$GREP
"
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
return
;;
"Slackware"
|
"Gentoo"
)
echo
"
$GREP
"
|
sed
-e
"s|^ *
\(
.*
\)
-devel *
\$
|
\1
|g"
return
;;
esac
echo
"
$GREP
"
}
}
# Get replacement rule for ALT package to local in $1 (scan for files in $@)
# Get replacement rule for ALT package to local in $1 (scan for files in $@)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment