diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-04-26 10:35:48 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-04-26 10:35:48 +0000 |
commit | 71aee66c5039b6bff94cfb65d7d332600d9bfa8d (patch) | |
tree | bee557f93aa9dbd4a1041cdf080f53b9522c11dc /dev-lang/fpc | |
parent | Remove old. (diff) | |
download | gentoo-2-71aee66c5039b6bff94cfb65d7d332600d9bfa8d.tar.gz gentoo-2-71aee66c5039b6bff94cfb65d7d332600d9bfa8d.tar.bz2 gentoo-2-71aee66c5039b6bff94cfb65d7d332600d9bfa8d.zip |
Remove old.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-lang/fpc')
-rw-r--r-- | dev-lang/fpc/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lang/fpc/files/fpc-2.2.0-unneeded-symbols.patch | 62 | ||||
-rw-r--r-- | dev-lang/fpc/files/fpc-2.2.2-execstack.patch | 338 | ||||
-rw-r--r-- | dev-lang/fpc/files/fpc-2.2.2-unneeded-symbols.patch | 62 | ||||
-rw-r--r-- | dev-lang/fpc/files/fpc-2.2.4-execstack.patch | 342 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.2.0-r1.ebuild | 153 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.2.0.ebuild | 149 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.2.2-r1.ebuild | 153 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.2.4-r2.ebuild | 131 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.4.0.ebuild | 132 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.4.4.ebuild | 143 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.6.0-r1.ebuild | 161 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.6.0.ebuild | 149 |
13 files changed, 9 insertions, 1976 deletions
diff --git a/dev-lang/fpc/ChangeLog b/dev-lang/fpc/ChangeLog index b887c90684d6..c2254b7cbd03 100644 --- a/dev-lang/fpc/ChangeLog +++ b/dev-lang/fpc/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-lang/fpc # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.67 2014/04/26 10:25:09 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.68 2014/04/26 10:35:47 radhermit Exp $ + + 26 Apr 2014; Tim Harder <radhermit@gentoo.org> -fpc-2.2.0.ebuild, + -fpc-2.2.0-r1.ebuild, -fpc-2.2.2-r1.ebuild, -fpc-2.2.4-r2.ebuild, + -fpc-2.4.0.ebuild, -fpc-2.4.4.ebuild, -fpc-2.6.0.ebuild, + -fpc-2.6.0-r1.ebuild, -files/fpc-2.2.0-unneeded-symbols.patch, + -files/fpc-2.2.2-execstack.patch, -files/fpc-2.2.2-unneeded-symbols.patch, + -files/fpc-2.2.4-execstack.patch: + Remove old. *fpc-2.6.4 (26 Apr 2014) diff --git a/dev-lang/fpc/files/fpc-2.2.0-unneeded-symbols.patch b/dev-lang/fpc/files/fpc-2.2.0-unneeded-symbols.patch deleted file mode 100644 index 6f30ff4a1ca1..000000000000 --- a/dev-lang/fpc/files/fpc-2.2.0-unneeded-symbols.patch +++ /dev/null @@ -1,62 +0,0 @@ -Index: packages/gtk2/src/gtk+/gtk/gtk2.pas -=================================================================== ---- packages/extra/gtk2/gtk+/gtk/gtk2.pas (revision 11628) -+++ packages/extra/gtk2/gtk+/gtk/gtk2.pas (working copy) -@@ -63,6 +63,8 @@ - {$DEFINE HasGTK2_8} - {$ENDIF} - -+// {$define HasGTK_FileSystem} -+ - interface - - uses -Index: packages/gtk2/src/gtk+/gtk/gtkfilesystem.inc -=================================================================== ---- packages/extra/gtk2/gtk+/gtk/gtkfilesystem.inc (revision 11628) -+++ packages/extra/gtk2/gtk+/gtk/gtkfilesystem.inc (working copy) -@@ -115,17 +115,14 @@ - - {$IFDEF read_interface_rest} - -+{$ifdef HasGTK_FileSystem} - - { GError enumeration for GtkFileSystem } - - function GTK_FILE_SYSTEM_ERROR : TGQuark; - -- -- - function gtk_file_system_error_quark:TGQuark;cdecl;external gtklib name 'gtk_file_system_error_quark'; - -- -- - { Boxed-type for gtk_file_folder_get_info() results } - - function GTK_TYPE_FILE_INFO : GType; -@@ -244,11 +241,16 @@ - { GtkFileSystem modules support } - - function _gtk_file_system_create(file_system_name:Pchar):PGtkFileSystem;cdecl;external gtklib name '_gtk_file_system_create'; -+ -+{$endif HasGTK_FileSystem} -+ - {$endif} {read_interface_rest} - - - {$ifdef read_implementation} - -+{$ifdef HasGTK_FileSystem} -+ - function GTK_FILE_SYSTEM_ERROR : TGQuark; - begin - GTK_FILE_SYSTEM_ERROR:=gtk_file_system_error_quark; -@@ -307,6 +309,8 @@ - GTK_FILE_FOLDER_GET_IFACE:=G_TYPE_INSTANCE_GET_INTERFACE(inst,GTK_TYPE_FILE_FOLDER); - end; - -+{$endif HasGTK_FileSystem} -+ - function gtk_file_path_new_dup(str : Pgchar) : PGtkFilePath; - begin - gtk_file_path_new_dup:=PGtkFilePath(g_strdup(str)); diff --git a/dev-lang/fpc/files/fpc-2.2.2-execstack.patch b/dev-lang/fpc/files/fpc-2.2.2-execstack.patch deleted file mode 100644 index c2c38c20dc45..000000000000 --- a/dev-lang/fpc/files/fpc-2.2.2-execstack.patch +++ /dev/null @@ -1,338 +0,0 @@ - - http://bugs.gentoo.org/show_bug.cgi?id=228867 - http://mantis.freepascal.org/view.php?id=11563 - ---- fpcbuild-2.2.2/fpcsrc/compiler/aggas.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/aggas.pas -@@ -1074,6 +1074,13 @@ - (target_info.system in systems_darwin) then - AsmWriteLn(#9'.subsections_via_symbols'); - -+ { "no executable stack" marker for Linux } -+ if (target_info.system in system_linux) and -+ not(cs_executable_stack in current_settings.moduleswitches) then -+ begin -+ AsmWriteLn('.section .note.GNU-stack,"",%progbits'); -+ end; -+ - AsmLn; - {$ifdef EXTDEBUG} - if assigned(current_module.mainsource) then ---- fpcbuild-2.2.2/fpcsrc/compiler/globtype.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/globtype.pas -@@ -109,7 +109,9 @@ - { linking } - cs_create_smart,cs_create_dynamic,cs_create_pic, - { browser switches are back } -- cs_browser,cs_local_browser -+ cs_browser,cs_local_browser, -+ { target specific } -+ cs_executable_stack - ); - tmoduleswitches = set of tmoduleswitch; - ---- fpcbuild-2.2.2/fpcsrc/compiler/msg/errore.msg -+++ fpcbuild-2.2.2/fpcsrc/compiler/msg/errore.msg -@@ -2699,6 +2699,7 @@ - 3*1W<x>_Target-specific options (targets) - A*1W<x>_Target-specific options (targets) - P*1W<x>_Target-specific options (targets) -+p*1W<x>_Target-specific options (targets) - 3*2Wb_Create a bundle instead of a library (Darwin) - P*2Wb_Create a bundle instead of a library (Darwin) - p*2Wb_Create a bundle instead of a library (Darwin) -@@ -2718,6 +2719,10 @@ - 3*2WR_Generate relocation code (Windows) - A*2WR_Generate relocation code (Windows) - P*2WT_Specify MPW tool type application (Classic Mac OS) -+3*2WX_Enable executable stack (Linux) -+A*2WX_Enable executable stack (Linux) -+p*2WX_Enable executable stack (Linux) -+P*2WX_Enable executable stack (Linux) - **1X_Executable options: - **2Xc_Pass --shared/-dynamic to the linker (BeOS, Darwin, FreeBSD, Linux) - **2Xd_Do not use standard library search path (needed for cross compile) ---- fpcbuild-2.2.2/fpcsrc/compiler/msgidx.inc -+++ fpcbuild-2.2.2/fpcsrc/compiler/msgidx.inc -@@ -738,7 +738,7 @@ - option_info=11024; - option_help_pages=11025; - -- MsgTxtSize = 45950; -+ MsgTxtSize = 46144; - - MsgIdxMax : array[1..20] of longint=( - 24,87,248,84,63,50,108,22,135,61, ---- fpcbuild-2.2.2/fpcsrc/compiler/msgtxt.inc -+++ fpcbuild-2.2.2/fpcsrc/compiler/msgtxt.inc -@@ -1,7 +1,7 @@ - {$ifdef Delphi} --const msgtxt : array[0..000191] of string[240]=( -+const msgtxt : array[0..000192] of string[240]=( - {$else Delphi} --const msgtxt : array[0..000191,1..240] of char=( -+const msgtxt : array[0..000192,1..240] of char=( - {$endif Delphi} - '01000_T_Compiler: $1'#000+ - '01001_D_Compiler OS: $1'#000+ -@@ -1051,47 +1051,52 @@ - '3*1W<x>_Target-specific options (targets)'#010+ - 'A*1W<x>_Target-specific options (targets)'#010+ - 'P*1W<x>_Target-specific options (targets)'#010+ -- '3*2Wb_Create a b','undle instead of a library (Darwin)'#010+ -+ 'p*1W<x>_Target-s','pecific options (targets)'#010+ -+ '3*2Wb_Create a bundle instead of a library (Darwin)'#010+ - 'P*2Wb_Create a bundle instead of a library (Darwin)'#010+ - 'p*2Wb_Create a bundle instead of a library (Darwin)'#010+ - '3*2WB_Create a relocatable image (Windows)'#010+ -- 'A*2WB_Create a relocatable image (Windows, Symbian)'#010+ -- '3*2WC','_Specify console type application (EMX, OS/2, Windows)'#010+ -+ 'A*2WB_Create a ','relocatable image (Windows, Symbian)'#010+ -+ '3*2WC_Specify console type application (EMX, OS/2, Windows)'#010+ - 'A*2WC_Specify console type application (Windows)'#010+ - 'P*2WC_Specify console type application (Classic Mac OS)'#010+ -- '3*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ -- 'A*2WD_Use DEFFILE ','to export functions of DLL or EXE (Windows)'#010+ -+ '3*2WD_Use DEFFILE to export functions ','of DLL or EXE (Windows)'#010+ -+ 'A*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ - '3*2WF_Specify full-screen type application (EMX, OS/2)'#010+ - '3*2WG_Specify graphic type application (EMX, OS/2, Windows)'#010+ -- 'A*2WG_Specify graphic type application (Windows)'#010+ -- 'P*2WG_Specify graphic type appli','cation (Classic Mac OS)'#010+ -+ 'A*2WG_Specify graphic type application ','(Windows)'#010+ -+ 'P*2WG_Specify graphic type application (Classic Mac OS)'#010+ - '3*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ - 'A*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ -- '3*2WR_Generate relocation code (Windows)'#010+ -- 'A*2WR_Generate relocation code (Win','dows)'#010+ -+ '3*2WR_Generate relocation code (Wi','ndows)'#010+ -+ 'A*2WR_Generate relocation code (Windows)'#010+ - 'P*2WT_Specify MPW tool type application (Classic Mac OS)'#010+ -+ '3*2WX_Enable executable stack (Linux)'#010+ -+ 'A*2WX_Enable executable stack (Linux)'#010+ -+ 'p*2WX_Enable executable stack (Linux)'#010+ -+ 'P*2WX_Enable executab','le stack (Linux)'#010+ - '**1X_Executable options:'#010+ - '**2Xc_Pass --shared/-dynamic to the linker (BeOS, Darwin, FreeBSD, Lin'+ - 'ux)'#010+ - '**2Xd_Do not use standard library search path (needed for cross compil'+ - 'e)'#010+ -- '**2Xe','_Use external linker'#010+ -- '**2Xg_Create debuginfo in a separate file and add a debuglink section '+ -- 'to executable'#010+ -+ '**2Xe_Use external linker'#010+ -+ '**2Xg_Create debuginfo in',' a separate file and add a debuglink sectio'+ -+ 'n to executable'#010+ - '**2XD_Try to link units dynamically (defines FPC_LINK_DYNAMIC)'#010+ - '**2Xi_Use internal linker'#010+ - '**2Xm_Generate link map'#010+ -- '**2XM<x>_Set the ','name of the '#039'main'#039' program routine (default'+ -- ' is '#039'main'#039')'#010+ -+ '**2XM<x>_Set the name of the '#039'main'#039' program routine (default i'+ -+ 's',' '#039'main'#039')'#010+ - '**2XP<x>_Prepend the binutils names with the prefix <x>'#010+ - '**2Xr<x>_Set library search path to <x> (needed for cross compile) (Be'+ - 'OS, Linux)'#010+ -- '**2XR<x>_Prepend <x> to all linker search paths ','(BeOS, Darwin, FreeB'+ -- 'SD, Linux, Mac OS, Solaris)'#010+ -+ '**2XR<x>_Prepend <x> to all linker search paths (BeOS, Darwin, FreeBSD'+ -+ ', Linux, Mac OS, Solaris',')'#010+ - '**2Xs_Strip all symbols from executable'#010+ - '**2XS_Try to link units statically (default, defines FPC_LINK_STATIC)'#010+ - '**2Xt_Link with static libraries (-static is passed to linker)'#010+ -- '**2XX_Try to smartl','ink units (defines FPC_LINK_SMART)'#010+ -+ '**2XX_Try to smartlink units (defines FPC_LINK_SMART)',#010+ - '**1*_'#010+ - '**1?_Show this help'#010+ - '**1h_Shows this help without waiting'#000 ---- fpcbuild-2.2.2/fpcsrc/compiler/ogelf.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/ogelf.pas -@@ -1021,6 +1021,10 @@ - symtabsect:=TElfObjSection.create_ext(ObjSectionList,'.symtab',SHT_SYMTAB,0,0,0,4,sizeof(telfsymbol)); - strtabsect:=TElfObjSection.create_ext(ObjSectionList,'.strtab',SHT_STRTAB,0,0,0,1,0); - shstrtabsect:=TElfObjSection.create_ext(ObjSectionList,'.shstrtab',SHT_STRTAB,0,0,0,1,0); -+ { "no executable stack" marker for Linux } -+ if (target_info.system in system_linux) and -+ not(cs_executable_stack in current_settings.moduleswitches) then -+ TElfObjSection.create_ext(ObjSectionList,'.note.GNU-stack',SHT_PROGBITS,0,0,0,1,0); - { insert the empty and filename as first in strtab } - strtabsect.writestr(#0); - strtabsect.writestr(ExtractFileName(current_module.mainsource^)+#0); ---- fpcbuild-2.2.2/fpcsrc/compiler/options.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/options.pas -@@ -1357,6 +1357,18 @@ - else - apptype:=app_tool; - end; -+ 'X': -+ begin -+ if (target_info.system in system_linux) then -+ begin -+ if UnsetBool(More, j) then -+ exclude(init_settings.moduleswitches,cs_executable_stack) -+ else -+ include(init_settings.moduleswitches,cs_executable_stack) -+ end -+ else -+ IllegalPara(opt); -+ end - else - IllegalPara(opt); - end; ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/cprt0.as -@@ -135,3 +135,5 @@ - 2: .long 0 - .long 2,0,0 - 3: .align 4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/gprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/gprt0.as -@@ -90,3 +90,4 @@ - .long 2,0,0 - 3: .align 4 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/prt0.as -@@ -108,3 +108,5 @@ - 2: .long 0 - .long 2,0,0 - 3: .align 4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/ucprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/ucprt0.as -@@ -178,3 +178,5 @@ - 2: .long 0 - .long 2,0,0 - 3: .align 4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt0.as -@@ -105,3 +105,5 @@ - .set operatingsystem_parameter_envp,operatingsystem_parameters+0 - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt21.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt21.as -@@ -122,3 +122,5 @@ - .set operatingsystem_parameter_envp,operatingsystem_parameters+0 - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/dllprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/dllprt0.as -@@ -72,3 +72,4 @@ - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt0.as -@@ -87,3 +87,5 @@ - .set operatingsystem_parameter_envp,operatingsystem_parameters+0 - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt21.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt21.as -@@ -136,3 +136,4 @@ - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/prt0.as -@@ -109,3 +109,4 @@ - - //.section .threadvar,"aw",@nobits - .comm ___fpc_threadvar_offset,4 -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/cprt0.as -@@ -117,3 +117,4 @@ - .comm operatingsystem_parameter_argc, 4 - .comm operatingsystem_parameter_argv, 4 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/prt0.as -@@ -67,3 +67,5 @@ - .comm operatingsystem_parameter_envp,4 - .comm operatingsystem_parameter_argc,4 - .comm operatingsystem_parameter_argv,4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/cprt0.as -@@ -433,3 +433,5 @@ - .comm operatingsystem_parameter_argc, 4 - .comm operatingsystem_parameter_argv, 8 - .comm operatingsystem_parameter_envp, 8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/gprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/gprt0.as -@@ -439,3 +439,5 @@ - .comm operatingsystem_parameter_argc, 4 - .comm operatingsystem_parameter_argv, 8 - .comm operatingsystem_parameter_envp, 8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/prt0.as -@@ -376,3 +376,4 @@ - .comm operatingsystem_parameter_argv, 8 - .comm operatingsystem_parameter_envp, 8 - -+.section .note.GNU-stack,"",%progbits ---- /dev/null -+++ fpcbuild-2.2.2/fpcsrc/tests/webtbs/tw11563.pp -@@ -0,0 +1,40 @@ -+{ %target=linux} -+{ %result=216 } -+ -+program ExecStack; -+ procedure DoIt; -+ type -+ proc = procedure; -+ var -+{$if defined(cpupowerpc) or defined(cpupowerpc64)} -+ ret: longint; -+{$endif} -+{$if defined(cpui386) or defined(cpux86_64)} -+ ret: Byte; -+{$endif} -+{$ifdef cpuarm} -+ 'add arm code to test stack execution' -+{$endif} -+ DoNothing: proc; -+ -+ begin -+{$if defined(cpupowerpc) or defined(cpupowerpc64)} -+ { can't use proc(@ret) because linux/ppc64 always expects some kind of -+ trampoline -+ } -+ ret := ($4e shl 24) or ($80 shl 16) or ($00 shl 8) or $20; -+ asm -+ la r0, ret -+ mtctr r0 -+ bctrl -+ end; -+{$endif} -+{$if defined(cpui386) or defined(cpux86_64)} -+ ret := $C3; -+ DoNothing := proc(@ret); -+ DoNothing; -+{$endif} -+ end; -+begin -+ DoIt; -+end. diff --git a/dev-lang/fpc/files/fpc-2.2.2-unneeded-symbols.patch b/dev-lang/fpc/files/fpc-2.2.2-unneeded-symbols.patch deleted file mode 100644 index becbbeed63da..000000000000 --- a/dev-lang/fpc/files/fpc-2.2.2-unneeded-symbols.patch +++ /dev/null @@ -1,62 +0,0 @@ -Index: packages/gtk2/src/gtk+/gtk/gtk2.pas
-===================================================================
---- packages/gtk2/src/gtk+/gtk/gtk2.pas (revision 11628)
-+++ packages/gtk2/src/gtk+/gtk/gtk2.pas (working copy)
-@@ -63,6 +63,8 @@
- {$DEFINE HasGTK2_8} - {$ENDIF} - -+// {$define HasGTK_FileSystem} -+ - interface - - uses -Index: packages/gtk2/src/gtk+/gtk/gtkfilesystem.inc
-===================================================================
---- packages/gtk2/src/gtk+/gtk/gtkfilesystem.inc (revision 11628)
-+++ packages/gtk2/src/gtk+/gtk/gtkfilesystem.inc (working copy)
-@@ -115,17 +115,14 @@
- - {$IFDEF read_interface_rest} - -+{$ifdef HasGTK_FileSystem} - - { GError enumeration for GtkFileSystem } - - function GTK_FILE_SYSTEM_ERROR : TGQuark; - -- -- - function gtk_file_system_error_quark:TGQuark;cdecl;external gtklib name 'gtk_file_system_error_quark'; - -- -- - { Boxed-type for gtk_file_folder_get_info() results } - - function GTK_TYPE_FILE_INFO : GType; -@@ -244,11 +241,16 @@
- { GtkFileSystem modules support } - - function _gtk_file_system_create(file_system_name:Pchar):PGtkFileSystem;cdecl;external gtklib name '_gtk_file_system_create'; -+ -+{$endif HasGTK_FileSystem} -+ - {$endif} {read_interface_rest} - - - {$ifdef read_implementation} - -+{$ifdef HasGTK_FileSystem} -+ - function GTK_FILE_SYSTEM_ERROR : TGQuark; - begin - GTK_FILE_SYSTEM_ERROR:=gtk_file_system_error_quark; -@@ -307,6 +309,8 @@
- GTK_FILE_FOLDER_GET_IFACE:=G_TYPE_INSTANCE_GET_INTERFACE(inst,GTK_TYPE_FILE_FOLDER); - end; - -+{$endif HasGTK_FileSystem} -+ - function gtk_file_path_new_dup(str : Pgchar) : PGtkFilePath; - begin - gtk_file_path_new_dup:=PGtkFilePath(g_strdup(str)); diff --git a/dev-lang/fpc/files/fpc-2.2.4-execstack.patch b/dev-lang/fpc/files/fpc-2.2.4-execstack.patch deleted file mode 100644 index 9bd2f3460375..000000000000 --- a/dev-lang/fpc/files/fpc-2.2.4-execstack.patch +++ /dev/null @@ -1,342 +0,0 @@ - - http://bugs.gentoo.org/show_bug.cgi?id=228867 - http://mantis.freepascal.org/view.php?id=11563 - ---- fpcbuild-2.2.2/fpcsrc/compiler/aggas.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/aggas.pas -@@ -1074,6 +1074,13 @@ - (target_info.system in systems_darwin) then - AsmWriteLn(#9'.subsections_via_symbols'); - -+ { "no executable stack" marker for Linux } -+ if (target_info.system in system_linux) and -+ not(cs_executable_stack in current_settings.moduleswitches) then -+ begin -+ AsmWriteLn('.section .note.GNU-stack,"",%progbits'); -+ end; -+ - AsmLn; - {$ifdef EXTDEBUG} - if assigned(current_module.mainsource) then ---- fpcbuild-2.2.2/fpcsrc/compiler/globtype.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/globtype.pas -@@ -109,7 +109,9 @@ - { linking } - cs_create_smart,cs_create_dynamic,cs_create_pic, - { browser switches are back } -- cs_browser,cs_local_browser -+ cs_browser,cs_local_browser, -+ { target specific } -+ cs_executable_stack - ); - tmoduleswitches = set of tmoduleswitch; - ---- fpcbuild-2.2.2/fpcsrc/compiler/msg/errore.msg -+++ fpcbuild-2.2.2/fpcsrc/compiler/msg/errore.msg -@@ -2704,6 +2704,7 @@ - 3*1W<x>_Target-specific options (targets) - A*1W<x>_Target-specific options (targets) - P*1W<x>_Target-specific options (targets) -+p*1W<x>_Target-specific options (targets) - 3*2Wb_Create a bundle instead of a library (Darwin) - P*2Wb_Create a bundle instead of a library (Darwin) - p*2Wb_Create a bundle instead of a library (Darwin) -@@ -2723,6 +2724,10 @@ - 3*2WR_Generate relocation code (Windows) - A*2WR_Generate relocation code (Windows) - P*2WT_Specify MPW tool type application (Classic Mac OS) -+3*2WX_Enable executable stack (Linux) -+A*2WX_Enable executable stack (Linux) -+p*2WX_Enable executable stack (Linux) -+P*2WX_Enable executable stack (Linux) - **1X_Executable options: - **2Xc_Pass --shared/-dynamic to the linker (BeOS, Darwin, FreeBSD, Linux) - **2Xd_Do not use standard library search path (needed for cross compile) ---- fpcbuild-2.2.2/fpcsrc/compiler/msgidx.inc -+++ fpcbuild-2.2.2/fpcsrc/compiler/msgidx.inc -@@ -740,7 +740,7 @@ - option_info=11024; - option_help_pages=11025; - -- MsgTxtSize = 46171; -+ MsgTxtSize = 46365; - - MsgIdxMax : array[1..20] of longint=( - 24,87,250,84,63,50,108,22,135,61, ---- fpcbuild-2.2.2/fpcsrc/compiler/msgtxt.inc -+++ fpcbuild-2.2.2/fpcsrc/compiler/msgtxt.inc -@@ -1,7 +1,7 @@ - {$ifdef Delphi} --const msgtxt : array[0..000192] of string[240]=( -+const msgtxt : array[0..000193] of string[240]=( - {$else Delphi} --const msgtxt : array[0..000192,1..240] of char=( -+const msgtxt : array[0..000193,1..240] of char=( - {$endif Delphi} - '01000_T_Compiler: $1'#000+ - '01001_D_Compiler OS: $1'#000+ -@@ -1055,48 +1055,53 @@ - '3*1W<x>_Target-specific options (targets)'#010+ - 'A*1W<x>_Target-specific options (targets)'#010+ - 'P*1W<x>_Target-specific options (targets)'#010+ -- '3*2Wb_Create a bundle instead of a ','library (Darwin)'#010+ -+ 'p*1W<x>_Target-specific options (ta','rgets)'#010+ -+ '3*2Wb_Create a bundle instead of a library (Darwin)'#010+ - 'P*2Wb_Create a bundle instead of a library (Darwin)'#010+ - 'p*2Wb_Create a bundle instead of a library (Darwin)'#010+ - '3*2WB_Create a relocatable image (Windows)'#010+ -- 'A*2WB_Create a relocatable image (Windows, Symbian)'#010+ -- '3*2WC_Specify console ty','pe application (EMX, OS/2, Windows)'#010+ -+ 'A*2WB_Create a relocatable image (','Windows, Symbian)'#010+ -+ '3*2WC_Specify console type application (EMX, OS/2, Windows)'#010+ - 'A*2WC_Specify console type application (Windows)'#010+ - 'P*2WC_Specify console type application (Classic Mac OS)'#010+ -- '3*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ -- 'A*2WD_Use DEFFILE to export functions',' of DLL or EXE (Windows)'#010+ -+ '3*2WD_Use DEFFILE to export functions of DLL or EXE (Wind','ows)'#010+ -+ 'A*2WD_Use DEFFILE to export functions of DLL or EXE (Windows)'#010+ - '3*2WF_Specify full-screen type application (EMX, OS/2)'#010+ - '3*2WG_Specify graphic type application (EMX, OS/2, Windows)'#010+ - 'A*2WG_Specify graphic type application (Windows)'#010+ -- 'P*2WG_Specify graphic type application (Classic Mac',' OS)'#010+ -+ 'P*2WG_Spe','cify graphic type application (Classic Mac OS)'#010+ - '3*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ - 'A*2WN_Do not generate relocation code, needed for debugging (Windows)'#010+ - '3*2WR_Generate relocation code (Windows)'#010+ -- 'A*2WR_Generate relocation code (Windows)'#010+ -- 'P*2WT_Specify',' MPW tool type application (Classic Mac OS)'#010+ -- '**1X_Executable options:'#010+ -+ 'A*2WR_Genera','te relocation code (Windows)'#010+ -+ 'P*2WT_Specify MPW tool type application (Classic Mac OS)'#010+ -+ '3*2WX_Enable executable stack (Linux)'#010+ -+ 'A*2WX_Enable executable stack (Linux)'#010+ -+ 'p*2WX_Enable executable stack (Linux)'#010+ -+ 'P*2WX_Enable executable stack (Linux)'#010+ -+ '**','1X_Executable options:'#010+ - '**2Xc_Pass --shared/-dynamic to the linker (BeOS, Darwin, FreeBSD, Lin'+ - 'ux)'#010+ - '**2Xd_Do not use standard library search path (needed for cross compil'+ - 'e)'#010+ -- '**2Xe_Use external linke','r'#010+ -- '**2Xg_Create debuginfo in a separate file and add a debuglink section '+ -- 'to executable'#010+ -+ '**2Xe_Use external linker'#010+ -+ '**2Xg_Create debuginfo in a separate file an','d add a debuglink sectio'+ -+ 'n to executable'#010+ - '**2XD_Try to link units dynamically (defines FPC_LINK_DYNAMIC)'#010+ - '**2Xi_Use internal linker'#010+ - '**2Xm_Generate link map'#010+ -- '**2XM<x>_Set the name of the '#039'main'#039' ','program routine (default'+ -- ' is '#039'main'#039')'#010+ -- '**2XP<x>_Prepend the binutils names with the prefix <x>'#010+ -+ '**2XM<x>_Set the name of the '#039'main'#039' program routine (default i'+ -+ 's '#039'main'#039')'#010+ -+ '**2XP<x>_P','repend the binutils names with the prefix <x>'#010+ - '**2Xr<x>_Set library search path to <x> (needed for cross compile) (Be'+ - 'OS, Linux)'#010+ -- '**2XR<x>_Prepend <x> to all linker search paths (BeOS, Darwin, Free','B'+ -- 'SD, Linux, Mac OS, Solaris)'#010+ -- '**2Xs_Strip all symbols from executable'#010+ -+ '**2XR<x>_Prepend <x> to all linker search paths (BeOS, Darwin, FreeBSD'+ -+ ', Linux, Mac OS, Solaris)'#010+ -+ '**2Xs_Strip all s','ymbols from executable'#010+ - '**2XS_Try to link units statically (default, defines FPC_LINK_STATIC)'#010+ - '**2Xt_Link with static libraries (-static is passed to linker)'#010+ -- '**2XX_Try to smartlink units ',' (defines FPC_LINK_SMART)'#010+ -+ '**2XX_Try to smartlink units (defines FPC_LINK_SMART)'#010+ - '**1*_'#010+ -- '**1?_Show this help'#010+ -+ '**1?_Show th','is help'#010+ - '**1h_Shows this help without waiting'#000 - ); ---- fpcbuild-2.2.2/fpcsrc/compiler/ogelf.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/ogelf.pas -@@ -1021,6 +1021,10 @@ - symtabsect:=TElfObjSection.create_ext(ObjSectionList,'.symtab',SHT_SYMTAB,0,0,0,4,sizeof(telfsymbol)); - strtabsect:=TElfObjSection.create_ext(ObjSectionList,'.strtab',SHT_STRTAB,0,0,0,1,0); - shstrtabsect:=TElfObjSection.create_ext(ObjSectionList,'.shstrtab',SHT_STRTAB,0,0,0,1,0); -+ { "no executable stack" marker for Linux } -+ if (target_info.system in system_linux) and -+ not(cs_executable_stack in current_settings.moduleswitches) then -+ TElfObjSection.create_ext(ObjSectionList,'.note.GNU-stack',SHT_PROGBITS,0,0,0,1,0); - { insert the empty and filename as first in strtab } - strtabsect.writestr(#0); - strtabsect.writestr(ExtractFileName(current_module.mainsource^)+#0); ---- fpcbuild-2.2.2/fpcsrc/compiler/options.pas -+++ fpcbuild-2.2.2/fpcsrc/compiler/options.pas -@@ -1357,6 +1357,18 @@ - else - apptype:=app_tool; - end; -+ 'X': -+ begin -+ if (target_info.system in system_linux) then -+ begin -+ if UnsetBool(More, j) then -+ exclude(init_settings.moduleswitches,cs_executable_stack) -+ else -+ include(init_settings.moduleswitches,cs_executable_stack) -+ end -+ else -+ IllegalPara(opt); -+ end - else - IllegalPara(opt); - end; ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/cprt0.as -@@ -135,3 +135,5 @@ - 2: .long 0 - .long 2,0,0 - 3: .align 4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/gprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/gprt0.as -@@ -90,3 +90,4 @@ - .long 2,0,0 - 3: .align 4 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/prt0.as -@@ -108,3 +108,5 @@ - 2: .long 0 - .long 2,0,0 - 3: .align 4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/ucprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/arm/ucprt0.as -@@ -178,3 +178,5 @@ - 2: .long 0 - .long 2,0,0 - 3: .align 4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt0.as -@@ -105,3 +105,5 @@ - .set operatingsystem_parameter_envp,operatingsystem_parameters+0 - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt21.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/cprt21.as -@@ -122,3 +122,5 @@ - .set operatingsystem_parameter_envp,operatingsystem_parameters+0 - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/dllprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/dllprt0.as -@@ -72,3 +72,4 @@ - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt0.as -@@ -87,3 +87,5 @@ - .set operatingsystem_parameter_envp,operatingsystem_parameters+0 - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt21.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/gprt21.as -@@ -136,3 +136,4 @@ - .set operatingsystem_parameter_argc,operatingsystem_parameters+4 - .set operatingsystem_parameter_argv,operatingsystem_parameters+8 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/i386/prt0.as -@@ -109,3 +109,4 @@ - - //.section .threadvar,"aw",@nobits - .comm ___fpc_threadvar_offset,4 -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/cprt0.as -@@ -117,3 +117,4 @@ - .comm operatingsystem_parameter_argc, 4 - .comm operatingsystem_parameter_argv, 4 - -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc/prt0.as -@@ -67,3 +67,5 @@ - .comm operatingsystem_parameter_envp,4 - .comm operatingsystem_parameter_argc,4 - .comm operatingsystem_parameter_argv,4 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/cprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/cprt0.as -@@ -433,3 +433,5 @@ - .comm operatingsystem_parameter_argc, 4 - .comm operatingsystem_parameter_argv, 8 - .comm operatingsystem_parameter_envp, 8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/gprt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/gprt0.as -@@ -439,3 +439,5 @@ - .comm operatingsystem_parameter_argc, 4 - .comm operatingsystem_parameter_argv, 8 - .comm operatingsystem_parameter_envp, 8 -+ -+.section .note.GNU-stack,"",%progbits ---- fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/prt0.as -+++ fpcbuild-2.2.2/fpcsrc/rtl/linux/powerpc64/prt0.as -@@ -376,3 +376,4 @@ - .comm operatingsystem_parameter_argv, 8 - .comm operatingsystem_parameter_envp, 8 - -+.section .note.GNU-stack,"",%progbits ---- /dev/null -+++ fpcbuild-2.2.2/fpcsrc/tests/webtbs/tw11563.pp -@@ -0,0 +1,40 @@ -+{ %target=linux} -+{ %result=216 } -+ -+program ExecStack; -+ procedure DoIt; -+ type -+ proc = procedure; -+ var -+{$if defined(cpupowerpc) or defined(cpupowerpc64)} -+ ret: longint; -+{$endif} -+{$if defined(cpui386) or defined(cpux86_64)} -+ ret: Byte; -+{$endif} -+{$ifdef cpuarm} -+ 'add arm code to test stack execution' -+{$endif} -+ DoNothing: proc; -+ -+ begin -+{$if defined(cpupowerpc) or defined(cpupowerpc64)} -+ { can't use proc(@ret) because linux/ppc64 always expects some kind of -+ trampoline -+ } -+ ret := ($4e shl 24) or ($80 shl 16) or ($00 shl 8) or $20; -+ asm -+ la r0, ret -+ mtctr r0 -+ bctrl -+ end; -+{$endif} -+{$if defined(cpui386) or defined(cpux86_64)} -+ ret := $C3; -+ DoNothing := proc(@ret); -+ DoNothing; -+{$endif} -+ end; -+begin -+ DoIt; -+end. diff --git a/dev-lang/fpc/fpc-2.2.0-r1.ebuild b/dev-lang/fpc/fpc-2.2.0-r1.ebuild deleted file mode 100644 index 76ff004a5736..000000000000 --- a/dev-lang/fpc/fpc-2.2.0-r1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.2.0-r1.ebuild,v 1.3 2012/07/09 21:29:15 ulm Exp $ - -inherit eutils - -# bug #183604 -RESTRICT="strip" - -PV_BIN="2.2.0" -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - x86? ( mirror://sourceforge/freepascal/fpc-${PV_BIN}.i386-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/fpc-2.0.0.sparc-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/fpc-${PV_BIN}.powerpc-linux.tar ) - amd64? ( mirror://sourceforge/freepascal/fpc-${PV_BIN}.x86_64-linux.tar ) - doc? ( mirror://sourceforge/freepascal/fpc-${PV}-doc-pdf.tar.gz )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="doc source" - -DEPEND="!dev-lang/fpc-bin - !dev-lang/fpc-source" - -src_unpack() { - case ${ARCH} in - x86) FPC_ARCH="i386" ;; - ppc) FPC_ARCH="powerpc" ;; - amd64) FPC_ARCH="x86_64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} || die "Unpacking ${A} failed!" - - tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" - - cd "${S}" - epatch "${FILESDIR}"/${P}-unneeded-symbols.patch -} - -set_pp() { - case ${ARCH} in - x86) FPC_ARCH="386" ;; - ppc) FPC_ARCH="ppc" ;; - amd64) FPC_ARCH="x64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle || die "make compiler_cycle failed!" - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle || die "make compiler_cycle failed!" - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean || die "make rtl_clean failed" - - emake -j1 PP="${pp}" rtl packages_base_all packages_fcl_all fv_all \ - packages_extra_all utils || die "make failed" - - # Use pregenerated docs to avoid sandbox violations (#146804) - #if use doc ; then - # cd "${S}"/../fpcdocs - # emake -j1 pdf || die "make pdf failed!" - #fi -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${P} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"/usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install \ - fv_install utils_install || die "make install failed!" - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - if ! has nodoc ${FEATURES} ; then - cd "${S}"/../install/doc - emake -j1 "$@" installdoc || die "make installdoc failed!" - fi - - if ! has noman ${FEATURES} ; then - cd "${S}"/../install/man - emake -j1 "$@" installman || die "make installman failed!" - fi - - if ! has nodoc ${FEATURES} && use doc ; then - insinto /usr/share/doc/${PF} - doins "${WORKDIR}"/share/doc/fpdocs-${PV}/*.pdf - #cd "${S}"/../fpcdocs - #emake -j1 "$@" pdfinstall || die "make pdfinstall failed" - fi - - if use source ; then - cd "${S}" - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall || die "make sourceinstall failed!" - find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg /usr/lib/fpc/${PV} "${D}"etc - - rm -rf "${D}"usr/lib/fpc/lexyacc -} - -pkg_postinst() { - # Using ewarn - it is really important for other ebuilds (e.g. Lazarus) - if [ -e /etc/._cfg0000_fpc.cfg ]; then - echo - ewarn "Make sure you etc-update /etc/fpc.cfg" - ewarn "Otherwise FPC will not work correctly." - echo - ebeep - fi - - ewarn "The default configuration for fpc strips executables. This" - ewarn "will cause QA notices in ebuilds for software using fpc." - ewarn "You can remove -Xs from /etc/fpc.cfg to avoid this." -} diff --git a/dev-lang/fpc/fpc-2.2.0.ebuild b/dev-lang/fpc/fpc-2.2.0.ebuild deleted file mode 100644 index 3d8386f06b20..000000000000 --- a/dev-lang/fpc/fpc-2.2.0.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.2.0.ebuild,v 1.7 2012/07/09 21:29:15 ulm Exp $ - -inherit eutils - -# bug #183604 -RESTRICT="strip" - -PV_BIN="2.2.0" -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - x86? ( mirror://sourceforge/freepascal/fpc-${PV_BIN}.i386-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/fpc-2.0.0.sparc-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/fpc-${PV_BIN}.powerpc-linux.tar ) - amd64? ( mirror://sourceforge/freepascal/fpc-${PV_BIN}.x86_64-linux.tar ) - doc? ( mirror://sourceforge/freepascal/fpc-${PV}-doc-pdf.tar.gz )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="amd64 ppc ~sparc x86" -IUSE="doc source" - -DEPEND="!dev-lang/fpc-bin - !dev-lang/fpc-source" - -src_unpack() { - case ${ARCH} in - x86) FPC_ARCH="i386" ;; - ppc) FPC_ARCH="powerpc" ;; - amd64) FPC_ARCH="x86_64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} || die "Unpacking ${A} failed!" - - tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" -} - -set_pp() { - case ${ARCH} in - x86) FPC_ARCH="386" ;; - ppc) FPC_ARCH="ppc" ;; - amd64) FPC_ARCH="x64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle || die "make compiler_cycle failed!" - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle || die "make compiler_cycle failed!" - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean || die "make rtl_clean failed" - - emake -j1 PP="${pp}" rtl packages_base_all packages_fcl_all fv_all \ - packages_extra_all utils || die "make failed" - - # Use pregenerated docs to avoid sandbox violations (#146804) - #if use doc ; then - # cd "${S}"/../fpcdocs - # emake -j1 pdf || die "make pdf failed!" - #fi -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${P} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"/usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install \ - fv_install utils_install || die "make install failed!" - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - if ! has nodoc ${FEATURES} ; then - cd "${S}"/../install/doc - emake -j1 "$@" installdoc || die "make installdoc failed!" - fi - - if ! has noman ${FEATURES} ; then - cd "${S}"/../install/man - emake -j1 "$@" installman || die "make installman failed!" - fi - - if ! has nodoc ${FEATURES} && use doc ; then - insinto /usr/share/doc/${PF} - doins "${WORKDIR}"/share/doc/fpdocs-${PV}/*.pdf - #cd "${S}"/../fpcdocs - #emake -j1 "$@" pdfinstall || die "make pdfinstall failed" - fi - - if use source ; then - cd "${S}" - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall || die "make sourceinstall failed!" - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg /usr/lib/fpc/${PV} "${D}"etc - - rm -rf "${D}"usr/lib/fpc/lexyacc -} - -pkg_postinst() { - # Using ewarn - it is really important for other ebuilds (e.g. Lazarus) - if [ -e /etc/._cfg0000_fpc.cfg ]; then - echo - ewarn "Make sure you etc-update /etc/fpc.cfg" - ewarn "Otherwise FPC will not work correctly." - echo - ebeep - fi - - ewarn "The default configuration for fpc strips executables. This" - ewarn "will cause QA notices in ebuilds for software using fpc." - ewarn "You can remove -Xs from /etc/fpc.cfg to avoid this." -} diff --git a/dev-lang/fpc/fpc-2.2.2-r1.ebuild b/dev-lang/fpc/fpc-2.2.2-r1.ebuild deleted file mode 100644 index 533fe12be63d..000000000000 --- a/dev-lang/fpc/fpc-2.2.2-r1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.2.2-r1.ebuild,v 1.2 2012/07/09 21:29:15 ulm Exp $ - -inherit eutils - -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - x86? ( mirror://sourceforge/freepascal/fpc-2.2.2.i386-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/fpc-2.0.0.sparc-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/fpc-2.2.0.powerpc-linux.tar ) - amd64? ( mirror://sourceforge/freepascal/fpc-2.2.2.x86_64-linux.tar ) - doc? ( mirror://sourceforge/freepascal/fpc-${PV}-doc-pdf.zip )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="doc source" - -DEPEND="!dev-lang/fpc-bin - !dev-lang/fpc-source" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - >=sys-devel/binutils-2.19.1-r1" - -src_unpack() { - case ${ARCH} in - x86) FPC_ARCH="i386" PV_BIN=2.2.2 ;; - ppc) FPC_ARCH="powerpc" PV_BIN=2.2.0 ;; - amd64) FPC_ARCH="x86_64" PV_BIN=2.2.2 ;; - sparc) FPC_ARCH="sparc" PV_BIN=2.0.0 ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} || die "Unpacking ${A} failed!" - - tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" - - cd "${S}" - epatch "${FILESDIR}"/${P}-unneeded-symbols.patch - epatch "${FILESDIR}"/${P}-execstack.patch - sed -i -e 's/ -Xs / /g' $(find . -name Makefile) || die "sed failed" -} - -set_pp() { - case ${ARCH} in - x86) FPC_ARCH="386" ;; - ppc) FPC_ARCH="ppc" ;; - amd64) FPC_ARCH="x64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle || die "make compiler_cycle failed!" - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle || die "make compiler_cycle failed!" - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean || die "make rtl_clean failed" - - emake -j1 PP="${pp}" rtl packages_all utils || die "make failed" - - # Use pregenerated docs to avoid sandbox violations (#146804) - #if use doc ; then - # cd "${S}"/../fpcdocs - # emake -j1 pdf || die "make pdf failed!" - #fi -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${P} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install \ - utils_install || die "make install failed!" - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - if ! has nodoc ${FEATURES} ; then - cd "${S}"/../install/doc - emake -j1 "$@" installdoc || die "make installdoc failed!" - fi - - if ! has noman ${FEATURES} ; then - cd "${S}"/../install/man - emake -j1 "$@" installman || die "make installman failed!" - fi - - if ! has nodoc ${FEATURES} && use doc ; then - insinto /usr/share/doc/${PF} - doins "${WORKDIR}"/doc/*.pdf - #cd "${S}"/../fpcdocs - #emake -j1 "$@" pdfinstall || die "make pdfinstall failed" - fi - - if use source ; then - cd "${S}" - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall || die "make sourceinstall failed!" - find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg /usr/lib/fpc/${PV} "${D}"etc - - rm -rf "${D}"usr/lib/fpc/lexyacc -} - -pkg_postinst() { - # Using ewarn - it is really important for other ebuilds (e.g. Lazarus) - if [ -e /etc/._cfg0000_fpc.cfg ]; then - echo - ewarn "Make sure you etc-update /etc/fpc.cfg" - ewarn "Otherwise FPC will not work correctly." - echo - ebeep - fi - - ewarn "The default configuration for fpc strips executables. This" - ewarn "will cause QA notices in ebuilds for software using fpc." - ewarn "You can remove -Xs from /etc/fpc.cfg to avoid this." -} diff --git a/dev-lang/fpc/fpc-2.2.4-r2.ebuild b/dev-lang/fpc/fpc-2.2.4-r2.ebuild deleted file mode 100644 index 8f4c6d8b32dc..000000000000 --- a/dev-lang/fpc/fpc-2.2.4-r2.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.2.4-r2.ebuild,v 1.2 2012/07/09 21:29:15 ulm Exp $ - -inherit eutils - -RESTRICT="strip" #269221 - -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - x86? ( mirror://sourceforge/freepascal/fpc-2.2.4.i386-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/fpc-2.2.4.sparc-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/fpc-2.2.4.powerpc-linux.tar ) - amd64? ( mirror://sourceforge/freepascal/fpc-2.2.4.x86_64-linux.tar ) - doc? ( mirror://sourceforge/freepascal/fpc-${PV}-doc-html.tar.gz - mirror://gentoo/fpc-${PV}-fpctoc.htx.bz2 )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="doc source" - -DEPEND="!dev-lang/fpc-bin - !dev-lang/fpc-source" -RDEPEND="${DEPEND}" -#DEPEND="${DEPEND} -# >=sys-devel/binutils-2.19.1-r1" - -src_unpack() { - case ${ARCH} in - x86) FPC_ARCH="i386" PV_BIN=2.2.4 ;; - ppc) FPC_ARCH="powerpc" PV_BIN=2.2.4 ;; - amd64) FPC_ARCH="x86_64" PV_BIN=2.2.4 ;; - sparc) FPC_ARCH="sparc" PV_BIN=2.2.4 ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} || die "Unpacking ${A} failed!" - - tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" - - cd "${S}" - epatch "${FILESDIR}"/${P}-execstack.patch - #sed -i -e 's/ -Xs / /g' $(find . -name Makefile) || die "sed failed" -} - -set_pp() { - case ${ARCH} in - x86) FPC_ARCH="386" ;; - ppc) FPC_ARCH="ppc" ;; - amd64) FPC_ARCH="x64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle || die "make compiler_cycle failed!" - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle || die "make compiler_cycle failed!" - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean || die "make rtl_clean failed" - - emake -j1 PP="${pp}" rtl packages_all utils || die "make failed" -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${P} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install \ - utils_install || die "make install failed!" - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - cd "${S}"/../install/doc - emake -j1 "$@" installdoc || die "make installdoc failed!" - - cd "${S}"/../install/man - emake -j1 "$@" installman || die "make installman failed!" - - if use doc ; then - cd "${S}"/../../share/doc/fpdocs-${PV} - insinto /usr/share/doc/${P} - doins -r * || die "doins fpdocs failed" - newins "${WORKDIR}"/fpc-${PV}-fpctoc.htx fpctoc.htx || die "newins fpctoc.htx failed" - fi - - if use source ; then - cd "${S}" - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall || die "make sourceinstall failed!" - find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg "${D}"usr/lib/fpc/${PV} "${D}"etc || die "samplecfg failed" - sed -i -e "s:${D}:/:g" "${D}"etc/fpc.cfg || die "sed fpc.cfg failed" - - rm -rf "${D}"usr/lib/fpc/lexyacc -} diff --git a/dev-lang/fpc/fpc-2.4.0.ebuild b/dev-lang/fpc/fpc-2.4.0.ebuild deleted file mode 100644 index 74bc52edcbc9..000000000000 --- a/dev-lang/fpc/fpc-2.4.0.ebuild +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.4.0.ebuild,v 1.6 2012/07/09 21:29:15 ulm Exp $ - -EAPI=2 - -inherit eutils - -RESTRICT="strip" #269221 - -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - amd64? ( mirror://sourceforge/freepascal/fpc-2.4.0.x86_64-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/fpc-2.4.0.powerpc-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/fpc-2.2.4.sparc-linux.tar ) - x86? ( mirror://sourceforge/freepascal/fpc-2.4.0.i386-linux.tar ) - doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> fpc-${PV}-doc-html.tar.gz - mirror://gentoo/fpc-${PV}-fpctoc.htx.bz2 )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="amd64 ppc sparc x86" -IUSE="doc source" - -DEPEND="!dev-lang/fpc-bin - !dev-lang/fpc-source" -RDEPEND="${DEPEND}" -#DEPEND="${DEPEND} -# >=sys-devel/binutils-2.19.1-r1" - -src_unpack() { - case ${ARCH} in - amd64) FPC_ARCH="x86_64" PV_BIN=2.4.0 ;; - ppc) FPC_ARCH="powerpc" PV_BIN=2.4.0 ;; - sparc) FPC_ARCH="sparc" PV_BIN=2.2.4 ;; - x86) FPC_ARCH="i386" PV_BIN=2.4.0 ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} || die "Unpacking ${A} failed!" - - tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" - - #cd "${S}" - #sed -i -e 's/ -Xs / /g' $(find . -name Makefile) || die "sed failed" -} - -set_pp() { - case ${ARCH} in - x86) FPC_ARCH="386" ;; - ppc) FPC_ARCH="ppc" ;; - amd64) FPC_ARCH="x64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle || die "make compiler_cycle failed!" - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle || die "make compiler_cycle failed!" - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean || die "make rtl_clean failed" - - emake -j1 PP="${pp}" rtl packages_all utils || die "make failed" -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${P} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install \ - utils_install || die "make install failed!" - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - cd "${S}"/../install/doc - emake -j1 "$@" installdoc || die "make installdoc failed!" - - cd "${S}"/../install/man - emake -j1 "$@" installman || die "make installman failed!" - - if use doc ; then - cd "${S}"/../../doc || die - insinto /usr/share/doc/${P} - doins -r * || die "doins fpdocs failed" - newins "${WORKDIR}"/fpc-${PV}-fpctoc.htx fpctoc.htx || die "newins fpctoc.htx failed" - fi - - if use source ; then - cd "${S}" - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall || die "make sourceinstall failed!" - find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg "${D}"usr/lib/fpc/${PV} "${D}"etc || die "samplecfg failed" - sed -i -e "s:${D}:/:g" "${D}"etc/fpc.cfg || die "sed fpc.cfg failed" - - rm -rf "${D}"usr/lib/fpc/lexyacc -} diff --git a/dev-lang/fpc/fpc-2.4.4.ebuild b/dev-lang/fpc/fpc-2.4.4.ebuild deleted file mode 100644 index 7a859e7df2ae..000000000000 --- a/dev-lang/fpc/fpc-2.4.4.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.4.4.ebuild,v 1.3 2012/07/09 21:29:15 ulm Exp $ - -EAPI=4 - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/${P}.powerpc-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/${PN}-2.2.4.sparc-linux.tar ) - x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) - doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz - http://dev.gentoo.org/~radhermit/distfiles/${P}-fpctoc.htx.bz2 )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="doc ide source" - -RDEPEND="ide? ( !dev-lang/fpc-ide )" - -RESTRICT="strip" #269221 - -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -src_unpack() { - case ${ARCH} in - amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; - ppc) FPC_ARCH="powerpc" PV_BIN=${PV} ;; - sparc) FPC_ARCH="sparc" PV_BIN=2.2.4 ;; - x86) FPC_ARCH="i386" PV_BIN=${PV} ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} - - tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" -} - -src_prepare() { - find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die -} - -set_pp() { - case ${ARCH} in - x86) FPC_ARCH="386" ;; - ppc) FPC_ARCH="ppc" ;; - amd64) FPC_ARCH="x64" ;; - sparc) FPC_ARCH="sparc" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new || die - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean - - emake -j1 PP="${pp}" rtl packages_all utils - - if use ide ; then - cd "${S}"/ide || die - emake -j1 PP="${pp}" - fi -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${PF} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install utils_install - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - cd "${S}"/../install/doc || die - emake -j1 "$@" installdoc - - cd "${S}"/../install/man || die - emake -j1 "$@" installman - - if use doc ; then - cd "${S}"/../../doc || die - dodoc -r * - newdoc "${WORKDIR}"/${P}-fpctoc.htx fpctoc.htx - docompress -x /usr/share/doc/${PF}/fpctoc.htx - fi - - if use ide ; then - cd "${S}"/ide - emake -j1 "$@" install - fi - - if use source ; then - cd "${S}" || die - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall - find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg "${D}"usr/lib/fpc/${PV} "${D}"etc || die - sed -i -e "s:${D}:/:g" "${D}"etc/fpc.cfg || die "sed fpc.cfg failed" - - rm -r "${D}"usr/lib/fpc/lexyacc || die -} - -pkg_postinst() { - if use ide ; then - einfo "To read the documentation in the fpc IDE, enable the doc USE flag" - einfo "and add /usr/share/doc/${PF}/fpctoc.htx to the Help Files list." - fi -} diff --git a/dev-lang/fpc/fpc-2.6.0-r1.ebuild b/dev-lang/fpc/fpc-2.6.0-r1.ebuild deleted file mode 100644 index e22764ab209c..000000000000 --- a/dev-lang/fpc/fpc-2.6.0-r1.ebuild +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.6.0-r1.ebuild,v 1.1 2013/06/26 22:47:51 hasufell Exp $ - -EAPI=5 - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) - arm? ( mirror://sourceforge/freepascal/${P}.arm-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/${P}.powerpc-linux.tar ) - ppc64? ( mirror://sourceforge/freepascal/${P}.powerpc64-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/${PN}-2.2.4.sparc-linux.tar ) - x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) - doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz - http://dev.gentoo.org/~radhermit/distfiles/${P}-fpctoc.htx.bz2 )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" -IUSE="doc ide source" - -RDEPEND="ide? ( !dev-lang/fpc-ide )" - -RESTRICT="strip" #269221 - -S=${WORKDIR}/fpcbuild-${PV}/fpcsrc - -src_unpack() { - case ${ARCH} in - amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; - arm) FPC_ARCH="arm" PV_BIN=${PV} ;; - ppc) FPC_ARCH="powerpc" PV_BIN=${PV} ;; - ppc64) FPC_ARCH="powerpc64" PV_BIN=${PV} ;; - sparc) FPC_ARCH="sparc" PV_BIN=2.2.4 ;; - x86) FPC_ARCH="i386" PV_BIN=${PV} ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} - - tar -xf ${P}.${FPC_ARCH}-linux/binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" -} - -src_prepare() { - find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die - - # let the pkg manager compress man files - sed -i '/find man.* gzip /d' "${WORKDIR}"/fpcbuild-${PV}/install/man/Makefile || die -} - -set_pp() { - case ${ARCH} in - amd64) FPC_ARCH="x64" ;; - arm) FPC_ARCH="arm" ;; - ppc) FPC_ARCH="ppc" ;; - ppc64) FPC_ARCH="ppc64" ;; - sparc) FPC_ARCH="sparc" ;; - x86) FPC_ARCH="386" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new || die - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean - - emake -j1 PP="${pp}" rtl packages_all utils - - if use ide ; then - cd "${S}"/ide || die - emake -j1 PP="${pp}" - fi -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"/usr \ - INSTALL_DOCDIR="${D}"/usr/share/doc/${PF} \ - INSTALL_MANDIR="${D}"/usr/share/man \ - INSTALL_SOURCEDIR="${D}"/usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install utils_install - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - cd "${S}"/../install/doc || die - emake -j1 "$@" installdoc - - cd "${S}"/../install/man || die - emake -j1 "$@" installman - - if use doc ; then - cd "${S}"/../../doc || die - dodoc -r * - newdoc "${WORKDIR}"/${P}-fpctoc.htx fpctoc.htx - docompress -x /usr/share/doc/${PF}/fpctoc.htx - fi - - if use ide ; then - cd "${S}"/ide - emake -j1 "$@" install - fi - - if use source ; then - cd "${S}" || die - shift - emake -j1 PP="${D}"/usr/bin/ppc${FPC_ARCH} "$@" sourceinstall - find "${D}"/usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"/usr/lib/fpc/${PV}/samplecfg "${D}"/usr/lib/fpc/${PV} "${D}"/etc || die - - sed -i "s:${D}::g" "${D}"/etc/fpc.cfg || die - - if use ide ; then - sed -e "s:${D}::g" \ - -i "${D}"/etc/fppkg.cfg \ - -i "${D}"/etc/fppkg/* \ - -i "${D}"/usr/lib/fpc/${PV}/ide/text/fp*.cfg \ - || die - fi - - rm -r "${D}"/usr/lib/fpc/lexyacc || die -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]] && use ide; then - einfo "To read the documentation in the fpc IDE, enable the doc USE flag" - einfo "and add /usr/share/doc/${PF}/fpctoc.htx to the Help Files list." - fi -} diff --git a/dev-lang/fpc/fpc-2.6.0.ebuild b/dev-lang/fpc/fpc-2.6.0.ebuild deleted file mode 100644 index b6d498360ef5..000000000000 --- a/dev-lang/fpc/fpc-2.6.0.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.6.0.ebuild,v 1.2 2012/07/09 21:29:15 ulm Exp $ - -EAPI=4 - -HOMEPAGE="http://www.freepascal.org/" -DESCRIPTION="Free Pascal Compiler" -SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz - amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) - arm? ( mirror://sourceforge/freepascal/${P}.arm-linux.tar ) - ppc? ( mirror://sourceforge/freepascal/${P}.powerpc-linux.tar ) - ppc64? ( mirror://sourceforge/freepascal/${P}.powerpc64-linux.tar ) - sparc? ( mirror://sourceforge/freepascal/${PN}-2.2.4.sparc-linux.tar ) - x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) - doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz - http://dev.gentoo.org/~radhermit/distfiles/${P}-fpctoc.htx.bz2 )" - -SLOT="0" -LICENSE="GPL-2 LGPL-2.1-with-linking-exception" -KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" -IUSE="doc ide source" - -RDEPEND="ide? ( !dev-lang/fpc-ide )" - -RESTRICT="strip" #269221 - -S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" - -src_unpack() { - case ${ARCH} in - amd64) FPC_ARCH="x86_64" PV_BIN=${PV} ;; - arm) FPC_ARCH="arm" PV_BIN=${PV} ;; - ppc) FPC_ARCH="powerpc" PV_BIN=${PV} ;; - ppc64) FPC_ARCH="powerpc64" PV_BIN=${PV} ;; - sparc) FPC_ARCH="sparc" PV_BIN=2.2.4 ;; - x86) FPC_ARCH="i386" PV_BIN=${PV} ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - unpack ${A} - - tar -xf ${P}.${FPC_ARCH}-linux/binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" - tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" -} - -src_prepare() { - find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die -} - -set_pp() { - case ${ARCH} in - amd64) FPC_ARCH="x64" ;; - arm) FPC_ARCH="arm" ;; - ppc) FPC_ARCH="ppc" ;; - ppc64) FPC_ARCH="ppc64" ;; - sparc) FPC_ARCH="sparc" ;; - x86) FPC_ARCH="386" ;; - *) die "This ebuild doesn't support ${ARCH}." ;; - esac - - case ${1} in - bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; - new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; - *) die "set_pp: unknown argument: ${1}" ;; - esac -} - -src_compile() { - local pp - - # Using the bootstrap compiler. - set_pp bootstrap - - emake -j1 PP="${pp}" compiler_cycle - - # Save new compiler from cleaning... - cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new || die - - # ...rebuild with current version... - emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle - - # ..and clean up afterwards - rm "${S}"/ppc${FPC_ARCH}.new || die - - # Using the new compiler. - set_pp new - - emake -j1 PP="${pp}" rtl_clean - - emake -j1 PP="${pp}" rtl packages_all utils - - if use ide ; then - cd "${S}"/ide || die - emake -j1 PP="${pp}" - fi -} - -src_install() { - local pp - set_pp new - - set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ - INSTALL_PREFIX="${D}"usr \ - INSTALL_DOCDIR="${D}"usr/share/doc/${PF} \ - INSTALL_MANDIR="${D}"usr/share/man \ - INSTALL_SOURCEDIR="${D}"usr/lib/fpc/${PV}/source - - emake -j1 "$@" compiler_install rtl_install packages_install utils_install - - dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} - - cd "${S}"/../install/doc || die - emake -j1 "$@" installdoc - - cd "${S}"/../install/man || die - emake -j1 "$@" installman - - if use doc ; then - cd "${S}"/../../doc || die - dodoc -r * - newdoc "${WORKDIR}"/${P}-fpctoc.htx fpctoc.htx - docompress -x /usr/share/doc/${PF}/fpctoc.htx - fi - - if use ide ; then - cd "${S}"/ide - emake -j1 "$@" install - fi - - if use source ; then - cd "${S}" || die - shift - emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall - find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; - fi - - "${D}"usr/lib/fpc/${PV}/samplecfg "${D}"usr/lib/fpc/${PV} "${D}"etc || die - sed -i -e "s:${D}:/:g" "${D}"etc/fpc.cfg || die "sed fpc.cfg failed" - - rm -r "${D}"usr/lib/fpc/lexyacc || die -} - -pkg_postinst() { - if use ide ; then - einfo "To read the documentation in the fpc IDE, enable the doc USE flag" - einfo "and add /usr/share/doc/${PF}/fpctoc.htx to the Help Files list." - fi -} |