diff --git a/app-arch/unadf/files/adflib-0.7.12_separate_comment.patch b/app-arch/unadf/files/adflib-0.7.12_separate_comment.patch new file mode 100644 index 0000000..ea3a28e --- /dev/null +++ b/app-arch/unadf/files/adflib-0.7.12_separate_comment.patch @@ -0,0 +1,161 @@ +--- adflib-0.7.12/examples/unadf.c 2006-12-03 17:22:38.000000000 +0100 ++++ adflib-0.7.12-patched/examples/unadf.c 2014-02-23 09:45:29.315626096 +0100 +@@ -50,7 +50,6 @@ + + #define EXTBUFL 1024*8 + +- + void help() + { + puts("unadf [-lrcsp -v n] dumpname.adf [files-with-path] [-d extractdir]"); +@@ -58,6 +57,7 @@ + puts(" -r : lists directory tree contents"); + puts(" -c : use dircache data (must be used with -l)"); + puts(" -s : display entries logical block pointer (must be used with -l)"); ++ puts(" -m : display file comments, if exists (must be used with -l)"); + putchar('\n'); + puts(" -v n : mount volume #n instead of default #0 volume"); + putchar('\n'); +@@ -65,7 +65,8 @@ + puts(" -d dir : extract to 'dir' directory"); + } + +-void printEnt(struct Volume *vol, struct Entry* entry, char *path, BOOL sect) ++void printEnt(struct Volume *vol, struct Entry* entry, char *path, BOOL sect, ++ BOOL comment) + { + /* do not print the links entries, ADFlib do not support them yet properly */ + if (entry->type==ST_LFILE || entry->type==ST_LDIR || entry->type==ST_LSOFT) +@@ -74,12 +75,12 @@ + if (entry->type==ST_DIR) + printf(" "); + else +- printf("%7ld ",entry->size); ++ printf("%7d ",entry->size); + + printf("%4d/%02d/%02d %2d:%02d:%02d ",entry->year, entry->month, entry->days, + entry->hour, entry->mins, entry->secs); + if (sect) +- printf(" %06ld ",entry->sector); ++ printf(" %06d ",entry->sector); + + if (strlen(path)>0) + printf(" %s/",path); +@@ -89,7 +90,7 @@ + printf("%s/",entry->name); + else + printf("%s",entry->name); +- if (entry->comment!=NULL && strlen(entry->comment)>0) ++ if (comment && entry->comment!=NULL && strlen(entry->comment)>0) + printf(", %s",entry->comment); + putchar('\n'); + +@@ -199,13 +200,14 @@ + } + + +-void printTree(struct Volume *vol, struct List* tree, char* path, BOOL sect) ++void printTree(struct Volume *vol, struct List* tree, char* path, BOOL sect, ++ BOOL comment) + { + char *buf; + struct Entry* entry; + + while(tree) { +- printEnt(vol, tree->content, path, sect); ++ printEnt(vol, tree->content, path, sect, comment); + if (tree->subdir!=NULL) { + entry = (struct Entry*)tree->content; + if (strlen(path)>0) { +@@ -215,11 +217,11 @@ + return; + } + sprintf(buf,"%s/%s", path, entry->name); +- printTree(vol, tree->subdir, buf, sect); ++ printTree(vol, tree->subdir, buf, sect, comment); + free(buf); + } + else +- printTree(vol, tree->subdir, entry->name, sect); ++ printTree(vol, tree->subdir, entry->name, sect, comment); + } + tree = tree->next; + } +@@ -243,7 +245,7 @@ + printf("???"); break; + } + +- printf(". Cylinders = %ld, Heads = %ld, Sectors = %ld",dev->cylinders,dev->heads,dev->sectors); ++ printf(". Cylinders = %d, Heads = %d, Sectors = %d",dev->cylinders,dev->heads,dev->sectors); + + printf(". Volumes = %d\n",dev->nVol); + } +@@ -273,7 +275,7 @@ + if (vol->volName!=NULL) + printf(" \"%s\"", vol->volName); + +- printf(" between sectors [%ld-%ld].",vol->firstBlock, vol->lastBlock); ++ printf(" between sectors [%d-%d].",vol->firstBlock, vol->lastBlock); + + printf(" %s ",isFFS(vol->dosType) ? "FFS" : "OFS"); + if (isINTL(vol->dosType)) +@@ -370,12 +372,10 @@ + int main(int argc, char* argv[]) + { + int i, j; +- BOOL rflag, lflag, xflag, cflag, vflag, sflag, dflag, pflag, qflag; ++ BOOL rflag, lflag, xflag, cflag, vflag, sflag, dflag, pflag, qflag, mflag; + struct List* files, *rtfiles; + char *devname, *dirname; +- char strbuf[80]; + unsigned char *extbuf; +- int vInd, dInd, fInd, aInd; + BOOL nextArg; + + struct Device *dev; +@@ -389,8 +389,7 @@ + exit(0); + } + +- rflag = lflag = cflag = vflag = sflag = dflag = pflag = qflag = FALSE; +- vInd = dInd = fInd = aInd = -1; ++ rflag = lflag = cflag = vflag = sflag = dflag = pflag = qflag = mflag = FALSE; + xflag = TRUE; + dirname = NULL; + devname = NULL; +@@ -430,6 +429,9 @@ + case 's': + sflag = TRUE; + break; ++ case 'm': ++ mflag = TRUE; ++ break; + case 'c': + cflag = TRUE; + break; +@@ -489,8 +491,7 @@ + + dev = adfMountDev( devname,TRUE ); + if (!dev) { +- sprintf(strbuf,"Can't mount the dump device '%s'.\n", devname); +- fprintf(stderr, strbuf); ++ fprintf(stderr,"Can't mount the dump device '%s'.\n", devname); + adfEnvCleanUp(); exit(1); + } + if (!qflag) +@@ -523,13 +524,13 @@ + if (!rflag) { + cell = list = adfGetDirEnt(vol,vol->curDirPtr); + while(cell) { +- printEnt(vol,cell->content,"", sflag); ++ printEnt(vol,cell->content,"", sflag, mflag); + cell = cell->next; + } + adfFreeDirList(list); + } else { + cell = list = adfGetRDirEnt(vol,vol->curDirPtr,TRUE); +- printTree(vol,cell,"", sflag); ++ printTree(vol,cell,"", sflag, mflag); + adfFreeDirList(list); + } + }else if (xflag) { diff --git a/app-arch/unadf/unadf-0.7.12-r10.ebuild b/app-arch/unadf/unadf-0.7.12-r10.ebuild new file mode 100644 index 0000000..6764cda --- /dev/null +++ b/app-arch/unadf/unadf-0.7.12-r10.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-arch/unadf/unadf-0.7.12.ebuild,v 1.1 2013/12/29 00:26:30 robbat2 Exp $ + +EAPI=5 + +inherit autotools eutils + +MY_PN="adflib" + +DESCRIPTION="Extract files from Amiga adf disk images" +SRC_URI="http://lclevy.free.fr/${MY_PN}/${MY_PN}-${PV}.tar.bz2" +HOMEPAGE="http://lclevy.free.fr/adflib/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc-macos ~sparc-solaris ~x86 ~x86-interix ~x86-linux ~x86-solaris" +IUSE="static-libs" +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/adflib-0.7.12_separate_comment.patch +} + +src_prepare() { + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + prune_libtool_files +} diff --git a/app-pda/jpilot/Manifest b/app-pda/jpilot/Manifest new file mode 100644 index 0000000..1e541e3 --- /dev/null +++ b/app-pda/jpilot/Manifest @@ -0,0 +1,2 @@ +DIST jpilot-1.8.2.tar.gz 1740735 SHA256 2c28ed7acea27ae3d541036f2e2ca5ed7e0121badf477e3cfa5ec8d282337e23 SHA512 733dd51a2acc60760bb1ffaa0d7b4433584a571793d5e4f857492349bae8d032625baf9f0060e619d760628ddda3559bf4be057f45f4dc17ddf1af1ca795c024 WHIRLPOOL 51c834e48b137160d0f313f41a83837428d1a23b0a8955ce8f87fef6dd02051c1705a4f702a543e338cad825303ae4ef89a9f20a3db88875b409404487af622c +EBUILD jpilot-1.8.2-r10.ebuild 1105 SHA256 8624ce4d76e0939cd76c9b8db21cd303671b950b69ff303a22d61870287f02bd SHA512 2d8d9e863c19b39cb0ba4dae66b7aa7658f93f43bff798e726d4ebe33932dc75799f98958cd155ab5059991f13f40d13152d9645bdc1ab54f861e45ec7d9148c WHIRLPOOL 1bcf76878ccc25a340ea89129ac46b85f05bb8189668671581458206e9cb88a8bb9285ed487bffe559d154243432ddca98934ce73b34f086a5501fdeb7e99561 diff --git a/app-pda/jpilot/jpilot-1.8.2-r10.ebuild b/app-pda/jpilot/jpilot-1.8.2-r10.ebuild new file mode 100644 index 0000000..798e79b --- /dev/null +++ b/app-pda/jpilot/jpilot-1.8.2-r10.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-pda/jpilot/jpilot-1.8.1.ebuild,v 1.4 2014/03/01 22:17:19 mgorny Exp $ + +EAPI=4 +inherit autotools eutils + +DESCRIPTION="Desktop Organizer Software for the Palm Pilot" +HOMEPAGE="http://www.jpilot.org/" +SRC_URI="http://www.jpilot.org/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~x86" +IUSE="nls" + +RDEPEND=">=app-pda/pilot-link-0.12.5 + dev-libs/libgcrypt:0 + >=x11-libs/gtk+-2.18.9:2" +DEPEND="${RDEPEND} + nls? ( dev-util/intltool + sys-devel/gettext ) + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e '/^Icon/s:jpilot.xpm:/usr/share/pixmaps/jpilot/jpilot-icon1.xpm:' \ + jpilot.desktop || die + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable nls) +} + +src_install() { + emake \ + DESTDIR="${D}" \ + icondir="/usr/share/pixmaps/${PN}" \ + miscdir="/usr/share/doc/${PF}" \ + install + + rm -f "${D}"/usr/share/doc/${PF}/{COPYING,INSTALL} \ + "${D}"/usr/share/pixmaps/${PN}/README + + find "${D}" -name '*.la' -exec rm -f {} + +} diff --git a/x11-wm/windowmaker-crm/ChangeLog b/x11-wm/windowmaker-crm/ChangeLog deleted file mode 100644 index 46c99a2..0000000 --- a/x11-wm/windowmaker-crm/ChangeLog +++ /dev/null @@ -1,15 +0,0 @@ -# ChangeLog for x11-wm/windowmaker-crm -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - - 21 Apr 2011; Bernard Cafarelli - windowmaker-crm-9999.ebuild: - Use FHS layout for WPrefs, to keep in sync with the new default gnustep - layout - -*windowmaker-crm-9999 (01 Apr 2011) - - 01 Apr 2011; Bernard Cafarelli - +windowmaker-crm-9999.ebuild, +files/wmaker.desktop, +metadata.xml: - First version, based on cleaned windowmaker ebuild - diff --git a/x11-wm/windowmaker-crm/Manifest b/x11-wm/windowmaker-crm/Manifest deleted file mode 100644 index 61a9ab9..0000000 --- a/x11-wm/windowmaker-crm/Manifest +++ /dev/null @@ -1,5 +0,0 @@ -AUX wmaker.desktop 221 RMD160 501ba6451f7e756cc3d07682d728bcd6fe55366d SHA1 acd95a41645fbef358459f8f4753056cb321497e SHA256 40359d3c61117f0dbc5eb547e4c369982427e8bc3174c95002d34eb30f9a4a84 -DIST WindowMaker-extra-0.1.tar.gz 238018 RMD160 94334c2c12d20a8fd0cd2a70e54cd3689f043038 SHA1 80f34cb3af705ec0f79d727b82cef28ee50fc4e7 SHA256 acd6e1fb790485b107daf2b710da372367b41383c55d9c8bdfdac521d850edc4 -EBUILD windowmaker-crm-9999.ebuild 2960 RMD160 f669c830168f4603864da326397f0e8a58045c1c SHA1 1d9d7a8db4ce916b340168631c8b9c6872e96826 SHA256 0616dc9f06d80585c3205493cffd0e3b120eaa7de7eacadf86b69d4b66c77f06 -MISC ChangeLog 509 RMD160 710aff6b0f74226a893d4c5fdffad3c3fef91aa4 SHA1 5aa625742f7be8ca72c19ad9a28d9877e7fecf24 SHA256 441b049051e9207604ae166f228c60bb832f9762027359d20d2ae4a0e9ec9d7d -MISC metadata.xml 455 RMD160 41514c712d553ed4752ce045efca3d27dd036c19 SHA1 345b35512a60f3d19cf5fc4cebbfe30bd6006bf3 SHA256 7661636f854da151e83478668ff58943b0d80662f6abd2a209707d3d34b37c7c diff --git a/x11-wm/windowmaker-crm/files/wmaker.desktop b/x11-wm/windowmaker-crm/files/wmaker.desktop deleted file mode 100644 index 1bda476..0000000 --- a/x11-wm/windowmaker-crm/files/wmaker.desktop +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -# The names/descriptions should really be better -Name=GNUStep WindowMaker -Comment=Use this session to run WindowMaker as your desktop environment -Exec=/usr/bin/wmaker -Icon= -Type=Application diff --git a/x11-wm/windowmaker-crm/metadata.xml b/x11-wm/windowmaker-crm/metadata.xml deleted file mode 100644 index 3ecadd4..0000000 --- a/x11-wm/windowmaker-crm/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - gnustep - - Enable XKB language status lock support. README - says: "If you don't know what it is you probably don't need - it." - Enable dynamic virtual desktop (conflicts with - software that works on the edges of the screen) - - diff --git a/x11-wm/windowmaker-crm/windowmaker-crm-9999.ebuild b/x11-wm/windowmaker-crm/windowmaker-crm-9999.ebuild deleted file mode 100644 index a6f6541..0000000 --- a/x11-wm/windowmaker-crm/windowmaker-crm-9999.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=3 - -inherit autotools git - -DESCRIPTION="Fork from the last available CVS version of Window Maker" -HOMEPAGE="http://repo.or.cz/w/wmaker-crm.git" -SRC_URI="http://www.windowmaker.info/pub/source/release/WindowMaker-extra-0.1.tar.gz" -EGIT_REPO_URI="git://repo.or.cz/wmaker-crm.git" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="" -IUSE="gif jpeg nls png tiff modelock +vdesktop xinerama" - -DEPEND="x11-libs/libXv - >=x11-libs/libXft-2.1.0 - x11-libs/libXt - media-libs/fontconfig - gif? ( >=media-libs/giflib-4.1.0-r3 ) - png? ( >=media-libs/libpng-1.2.1 ) - jpeg? ( virtual/jpeg ) - tiff? ( >=media-libs/tiff-3.6.1-r2 ) - xinerama? ( x11-libs/libXinerama )" -RDEPEND="${DEPEND} - !x11-wm/windowmaker - nls? ( >=sys-devel/gettext-0.10.39 )" - -src_unpack() { - # wm-extras - unpack ${A} - - git_src_unpack -} - -src_prepare() { - for file in "${S}"/WindowMaker/*menu*; do - if [[ -r $file ]] ; then - sed -i -e "s:/usr/local/GNUstep/Applications/WPrefs.app:${EPREFIX}/usr/bin/:g;" "$file" || die - sed -i -e 's:/usr/local/share/WindowMaker:${EPREFIX}/usr/share/WindowMaker:g;' "$file" || die - sed -i -e 's:/opt/share/WindowMaker:${EPREFIX}/usr/share/WindowMaker:g;' "$file" || die - fi; - done; - - eautoreconf || die "eautoreconf failed" -} - -src_configure() { - local myconf - - # image format types - # xpm is provided by X itself - myconf="--enable-xpm $(use_enable png) $(use_enable jpeg) $(use_enable gif) $(use_enable tiff)" - - # non required X capabilities - myconf="${myconf} $(use_enable modelock) $(use_enable xinerama)" - - if use nls; then - [[ -z $LINGUAS ]] && export LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`" - else - myconf="${myconf} --disable-locale" - fi - - # enable new features, need to be done via defines - append-flags -DNEWAPPICON - - # default settings with $myconf appended - econf \ - --sysconfdir="${EPREFIX}"/etc/X11 \ - --with-x \ - --enable-usermenu \ - --with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \ - --with-nlsdir="${EPREFIX}"/usr/share/locale \ - ${myconf} || die - cd ../WindowMaker-extra-0.1 - econf || die "windowmaker-extra: configure has failed" -} - -src_compile() { - emake || die "windowmaker: make has failed" - - # WindowMaker Extra Package (themes and icons) - cd ../WindowMaker-extra-0.1 - emake || die "windowmaker-extra: make has failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "windowmaker: install has failed." - - dodoc AUTHORS BUGFORM BUGS ChangeLog COPYING* INSTALL* FAQ* \ - README* NEWS TODO - - # WindowMaker Extra - cd ../WindowMaker-extra-0.1 - emake DESTDIR="${D}" install || die "windowmaker-extra: install failed" - - newdoc README README.extra - - # create wmaker session shell script - echo "#!/usr/bin/env bash" > wmaker - echo "${EPREFIX}/usr/bin/wmaker" >> wmaker - exeinto /etc/X11/Sessions/ - doexe wmaker - - insinto /etc/X11/dm/Sessions - doins "${FILESDIR}"/wmaker.desktop - make_desktop_entry /usr/bin/wmaker -} diff --git a/x11-wm/windowmaker/Manifest b/x11-wm/windowmaker/Manifest index 019a003..4e1f7e6 100644 --- a/x11-wm/windowmaker/Manifest +++ b/x11-wm/windowmaker/Manifest @@ -8,7 +8,8 @@ AUX 0.92.0/windowmaker-0.92.0-math_h.patch 584 SHA256 b84fd57c6c1f9ca2b61354487b AUX 0.92.0/windowmaker-0.92.0-qtdialogsfix.patch 2071 SHA256 5f442989d9d0ba352a8c327e4ffaa39e72362eb1719d9b50e5bb90f63c9b096f SHA512 741b2eef3709350ef518db5739c6758749bec23ab8ed1d9bccd642698ee6941bf78769953690b4747304b86cc19337e0b6304708287d64095b1d61ce7ebee033 WHIRLPOOL 0fad5b15ce07116f2b618e1958e3069373f53fb2b42504cd296b813782dbffc92f8e4403cfd732a87ad6b49c42fdd49ef8629c9e39cd9164376c8ede99432a75 AUX wmaker.desktop 221 SHA256 40359d3c61117f0dbc5eb547e4c369982427e8bc3174c95002d34eb30f9a4a84 SHA512 1c1b24001e47a2af8f18a5f90675d095ba7f929ad9273ca82f61fd13ad35ff22dc9b777eec24fc3fd984790a5d494949d1dd5e0ca39780920017ea7971a3289d WHIRLPOOL 68ea31480ba1796e4243184deff38270963841c2bdb54bc85a606ecad0cdccc6815b11fa67158cbcc527ae3a17488b97a209283289922323ed42ea37a062ac2b AUX wmaker_modelock_fix.patch 2257 SHA256 28aa382cd266cd7cb4002c3bc07566c809f2a4106fe9a8580be846c6b562d3bc SHA512 1fc1be99f06b2af302700575cacb2c0c41b39a7c48b68e8ef39a7040b912462e31e92b77143c4869e2807c9c2711791321abd44af36f3b33e1aaae572cc227da WHIRLPOOL 0c679b84ad938611a8717f02dc557fa5c878b496259689917c397db5739a65c43e5ce21035c5907bcf8b99c3d6865ce31a1e4f43c1d59a17b69cfee398fcf36e -DIST WindowMaker-0.92.0.tar.gz 2758524 SHA256 9edaa8d9ee6e6beb06f4c391c0aec5cd0e5b5494456cae2cdcfd49656177afc6 -DIST WindowMaker-extra-0.1.tar.gz 238018 SHA256 acd6e1fb790485b107daf2b710da372367b41383c55d9c8bdfdac521d850edc4 +DIST WindowMaker-0.92.0.tar.gz 2758524 SHA256 9edaa8d9ee6e6beb06f4c391c0aec5cd0e5b5494456cae2cdcfd49656177afc6 SHA512 3db6d7128d49ecd87d46893c63efcdda07f841bdfd5961462c0c9247d4f3937835f637dc7f4fa7169f6999595afca914c611f4249915700a461130c5a3c865d2 WHIRLPOOL 8d9395c79cdb23d4d6011dc5a1383852890f2d02fa0038a80cf81e2135b4a904065b4051fd1be07818136442f5ac792459f5cc81bc75ba090c1728aa4e4ef4cd +DIST WindowMaker-extra-0.1.tar.gz 238018 SHA256 acd6e1fb790485b107daf2b710da372367b41383c55d9c8bdfdac521d850edc4 SHA512 0fe9b3ffc093942db167d8a01e15c0f6741f3a40959d1434ea4f23e7b9d4a9c13935a61eabef9691e5fdfd4e407564caafce15c2d65d66499960a6764a874ab8 WHIRLPOOL f2c61b318f64a2debb727ae79dfa1bb8101888bc9492633a96ace0e704c731c383e92882c871622987d5971b919359c066638fba05c5dade330fe3bee21bb034 DIST windowmaker-0.92.0-patchset-3.tar.bz2 220812 SHA256 8d50cb8c7ac9370b6870e9d220968485d8bafddb896aab04b88a93cae306c5a9 EBUILD windowmaker-0.92.0-r899.ebuild 6853 SHA256 d3985c98a26b71f47bac249ded976c5ced3dca9ac86037941249b924476e9a6f SHA512 9225dcfb331c2148192c76fc9d1fd14e7060fedc59ede84486173a5d34781d4408f09a1c2cba01d206fd1ae6eda75f13827723c9d83d7027496b3be9a19b71f4 WHIRLPOOL 8e1e174ac77918381fce865dac3c7dc3f75185711eec02af07a39eef0262c0652b5b33f25d5a37cb98e8ce23501aed1016044c793b30b7ec97628e3ee307eeef +EBUILD windowmaker-9999.ebuild 2752 SHA256 6edc10d6b5b1cc3efdab66c443ff8c62e98c702ea913438acc5c688c03234717 SHA512 52167dabc0b16f1277433ecf67e67d238710a7a0ea9efa2efa4cec3bd806ee25d5cc3bdfd65b7e89518dad1b4940f4d98f18792c90c20992112de799e606297b WHIRLPOOL 81e75bf513f83a94f726ad7f1229d1e3681d6c0d19b46d7e975af3df1434cf80aaff5d3783056aea54626beee1309e2bd1902b95678b01fa69678dcd6fea175e diff --git a/x11-wm/windowmaker/windowmaker-9999.ebuild b/x11-wm/windowmaker/windowmaker-9999.ebuild new file mode 100644 index 0000000..a53d9ea --- /dev/null +++ b/x11-wm/windowmaker/windowmaker-9999.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit autotools eutils git-2 + +DESCRIPTION="The fast and light GNUstep window manager" +HOMEPAGE="http://www.windowmaker.org/" +SRC_URI="http://www.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz" +EGIT_REPO_URI="git://repo.or.cz/wmaker-crm.git" + +SLOT="0" +LICENSE="GPL-2" +IUSE="gif imagemagick jpeg modelock nls png tiff webp xinerama xrandr" +KEYWORDS="~amd64 ~x86" + +DEPEND="media-libs/fontconfig + >=x11-libs/libXft-2.1.0 + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXv + gif? ( >=media-libs/giflib-4.1.0-r3 ) + imagemagick? ( media-gfx/imagemagick ) + jpeg? ( virtual/jpeg ) + png? ( media-libs/libpng:0= ) + tiff? ( media-libs/tiff:0 ) + webp? ( media-libs/libwebp ) + xinerama? ( x11-libs/libXinerama ) + xrandr? ( x11-libs/libXrandr )" +RDEPEND="${DEPEND} + nls? ( >=sys-devel/gettext-0.10.39 )" + +src_unpack() { + # wm-extras + unpack ${A} + + git-2_src_unpack +} + +src_prepare() { + # Fix some paths + for file in WindowMaker/*menu* util/wmgenmenu.c; do + if [[ -r $file ]] ; then + sed -i -e "s:/usr/local/GNUstep/Applications/WPrefs.app:${EPREFIX}/usr/bin/:g;" "$file" || die + sed -i -e "s:/usr/local/share/WindowMaker:${EPREFIX}/usr/share/WindowMaker:g;" "$file" || die + sed -i -e "s:/opt/share/WindowMaker:${EPREFIX}/usr/share/WindowMaker:g;" "$file" || die + fi; + done; + + eautoreconf +} + +src_configure() { + local myconf + + # image format types + # xpm is provided by X itself + myconf="--enable-xpm $(use_enable imagemagick magick) $(use_enable jpeg) $(use_enable gif) $(use_enable png) $(use_enable tiff) $(use_enable webp)" + + # non required X capabilities + myconf="${myconf} $(use_enable modelock) $(use_enable xrandr randr) $(use_enable xinerama)" + + if use nls; then + [[ -z $LINGUAS ]] && export LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`" + else + myconf="${myconf} --disable-locale" + fi + + # default settings with $myconf appended + econf \ + --sysconfdir="${EPREFIX}"/etc/X11 \ + --with-x \ + --enable-usermenu \ + --with-pixmapdir="${EPREFIX}"/usr/share/pixmaps \ + --with-nlsdir="${EPREFIX}"/usr/share/locale \ + ${myconf} + + cd ../WindowMaker-extra-0.1 + econf +} + +src_compile() { + emake + + # WindowMaker Extra Package (themes and icons) + cd ../WindowMaker-extra-0.1 + emake +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS BUGFORM BUGS ChangeLog INSTALL* FAQ* \ + README* NEWS TODO + + # WindowMaker Extra + cd ../WindowMaker-extra-0.1 + emake DESTDIR="${D}" install + + newdoc README README.extra + + # create wmaker session shell script + echo "#!/usr/bin/env bash" > wmaker + echo "${EPREFIX}/usr/bin/wmaker" >> wmaker + exeinto /etc/X11/Sessions/ + doexe wmaker + + insinto /usr/share/xsessions +}