Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 77433 Details for
Bug 119430
Ebuild draft for Portland Group's PGI Workstation set of compilers
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pgi-workstation-6.1.1.ebuild
pgi-workstation-6.1.1.ebuild (text/plain), 4.42 KB, created by
Nicolas Bigaouette
on 2006-01-18 08:50:35 UTC
(
hide
)
Description:
pgi-workstation-6.1.1.ebuild
Filename:
MIME Type:
Creator:
Nicolas Bigaouette
Created:
2006-01-18 08:50:35 UTC
Size:
4.42 KB
patch
obsolete
> >DESCRIPTION="PGI's flagship scientific and engineering workstation compiler bundle" >SRC_URI="linux86-64[1].tar.gz" >HOMEPAGE="http://www.pgroup.com/products/workpgi.htm" >LICENSE="icc-9.0" > >KEYWORDS="~x86" >IUSE="" >RESTRICT="nostrip,fetch" > >_RELEASE=${PV:0:3} >_PRERELEASE=0 >_SRC=${WORKDIR} >_TARGET=linux86 >_COMMON="${_SRC}/.parts/common" >_PART="${_SRC}/.parts/${_TARGET}" >_KEEP_PARTS_DIR=1 > >_INSTALL_DIR=/opt/${PN//-/_} > >_GCC_PATH=`gcc-config -L` > >src_unpack() { > unpack ${A} > if test ! -f ${_PART} ; then > die "ERROR: internal install error (missing parts file ${_PART})" > fi > if test ! -f ${_SRC}/${_TARGET}/${_RELEASE}/bin/makelocalrc ; then > die "ERROR: internal install error (makelocalrc not found)" > fi > if test ! -x ${_SRC}/${_TARGET}/${_RELEASE}/bin/mkinst ; then > die "ERROR: internal install error (mkinst not found)" > fi >} > >src_install () { > > # Install software components. > dodir ${_INSTALL_DIR}/${_TARGET}/${_RELEASE} > for i in `cat ${_PART}` ; do > cp -R ${_SRC}/$i ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE} > done > > # Install common components. > dodir ${_INSTALL_DIR}/${_TARGET}/${_RELEASE} > for i in `cat ${_COMMON}` ; do > x=`basename $i` > cp -R ${_SRC}/common/$x ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE} > done > > # Make files writeable so script can make changes. > #chmod -Rf u+w ${D}${_INSTALL_DIR} > > # No Java installation > > # No ACML software from AMD > > # Create $PGI/index.htm > insinto ${_INSTALL_DIR}/${_TARGET}/${_RELEASE} > doins ${_SRC}/common/index.htm > > # Customize localrc to this Linux distribution. > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/makelocalrc -x ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE} > > # I don't know why, but /opt/pgi_workstation/linux86/6.1/bin/localrc doesn't contain > # information about GCC's path. > sed "s|set GCCDIR=*|set GCCDIR=${_GCC_PATH}|g" \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc > \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc.1 > sed "s|set GCCINC=*|set GCCINC=${_GCC_PATH}/include|g" \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc.1 > \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc.2 > sed "s|set G77DIR=\"*|set GCCINC=\"${_GCC_PATH}\"|g" \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc.2 > \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc.1 > rm -f ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc{,.2} > mv ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc.1 \ > ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/localrc > > # Create REDIST and PORTABLE directories. > ${_SRC}/postinstall ${D}${_INSTALL_DIR} > > # Support and ACML license files. > dodoc ${_SRC}/INSTALL.txt ${_SRC}/common/SUBSCRIPTION_SERVICE > > # Display evaluation license. > > # Collect FLEXlm information that will be used below. > _PGI=${_INSTALL_DIR} > export _PGI > unset LM_LICENSE_FILE # otherwise pglicinfo gets wrong license file > unset PGROUPD_LICENSE_FILE # otherwise pglicinfo gets wrong license file > _flexlm=`${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin/lmutil hostid | awk -F\" '/The FLEXlm/ {print $2}'` > _hname=`uname -n` > cat > ${D}${_INSTALL_DIR}/info << EOF_info > FLEXlm hostid: ${_flexlm} > Hostname: ${_hname} > Installation: ${_INSTALL_DIR} > PGI Release: ${_RELEASE} > >EOF_info > > # Save installation information to file, then print it. > > # Mimic the text from pglicinfo above, excluding PGI= hostid info. > cat > ${D}/${_INSTALL_DIR}/license.info << EOF_perm >For a permanent license, please read the order acknowledgement >that you received. Connect to https://www.pgroup.com/support/keylogin.htm >with the username and password in the order acknowledgement. > >EOF_perm > cat ${D}${_INSTALL_DIR}/info >> ${D}/${_INSTALL_DIR}/license.info > > # Remove temp license files > rm -f ${D}${_INSTALL_DIR}/{TRIAL_LICENSE,BETA_LICENSE,license.dat} > rm -f ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/{TRIAL_LICENSE,BETA_LICENSE,license.dat} > > # Copy license > cp ${FILESDIR}/license.dat ${D}${_INSTALL_DIR}/license.dat > > # Man pages > doman ${_SRC}/common/man/man1/* > rm -fr ${D}${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/man > > # Cleanup > rm -f ${D}${_INSTALL_DIR}/install > rm -f ${D}${_INSTALL_DIR}/postinstall > rm -f ${D}${_INSTALL_DIR}/info > rm -f ${D}${_INSTALL_DIR}/java_jre.tar.gz > > # Update variables as of INSTALL.txt > dodir /etc/env.d > cat > ${D}/etc/env.d/06pgi << EOF_perm >PATH=${_INSTALL_DIR}/${_TARGET}/${_RELEASE}/bin >LM_LICENSE_FILE=${_PGI}/license.dat >PGI=${_PGI} >EOF_perm > >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 119430
: 77433